Fisheye: Tag 306d53c7436437d23464f9d0bf104fe699eb7e3f refers to a dead (removed) revision in file `Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationInflowModelType.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 306d53c7436437d23464f9d0bf104fe699eb7e3f refers to a dead (removed) revision in file `Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationInflowModelTypeConverter.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelType.cs =================================================================== diff -u --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelType.cs (revision 0) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelType.cs (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -0,0 +1,39 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +namespace Ringtoets.StabilityPointStructures.IO +{ + /// + /// Defines the various inflow models for the stability point structures failure mechanism. + /// + public enum ConfigurationStabilityPointStructuresInflowModelType + { + /// + /// A low sill structure. + /// + LowSill = 1, + + /// + /// A flooded culvert structure. + /// + FloodedCulvert = 2 + } +} \ No newline at end of file Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelTypeConverter.cs =================================================================== diff -u --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelTypeConverter.cs (revision 0) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/ConfigurationStabilityPointStructuresInflowModelTypeConverter.cs (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -0,0 +1,162 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using System.ComponentModel; +using System.Globalization; +using Ringtoets.StabilityPointStructures.Data; + +namespace Ringtoets.StabilityPointStructures.IO +{ + /// + /// Converts to + /// or and back. + /// + public class ConfigurationStabilityPointStructuresInflowModelTypeConverter : TypeConverter + { + public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) + { + if (destinationType == typeof(StabilityPointStructureInflowModelType)) + { + return true; + } + return base.CanConvertTo(context, destinationType); + } + + public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) + { + var type = (ConfigurationStabilityPointStructuresInflowModelType) value; + if (destinationType == typeof(string)) + { + return ConvertToString(type); + } + if (destinationType == typeof(StabilityPointStructureInflowModelType)) + { + return ConvertToStabilityPointStructureInflowModelType(type); + } + return base.ConvertTo(context, culture, value, destinationType); + } + + public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) + { + if (sourceType == typeof(string)) + { + return true; + } + if (sourceType == typeof(StabilityPointStructureInflowModelType)) + { + return true; + } + return base.CanConvertFrom(context, sourceType); + } + + public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + { + var text = value as string; + if (text != null) + { + return ConvertToConfigurationInflowModelType(text); + } + var inflowModelType = value as StabilityPointStructureInflowModelType?; + if (inflowModelType != null) + { + return ConvertToConfigurationInflowModelType(inflowModelType.Value); + } + return base.ConvertFrom(context, culture, value); + } + + /// + /// Converts the given to a . + /// + /// The to convert. + /// The converted . + /// Thrown when is not supported. + private static object ConvertToStabilityPointStructureInflowModelType(ConfigurationStabilityPointStructuresInflowModelType type) + { + switch (type) + { + case ConfigurationStabilityPointStructuresInflowModelType.LowSill: + return StabilityPointStructureInflowModelType.LowSill; + case ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert: + return StabilityPointStructureInflowModelType.FloodedCulvert; + default: + throw new NotSupportedException($"Value '{type}' is not supported."); + } + } + + /// + /// Converts the given to a . + /// + /// The to convert. + /// The converted . + /// Thrown when is not supported. + private static object ConvertToString(ConfigurationStabilityPointStructuresInflowModelType type) + { + switch (type) + { + case ConfigurationStabilityPointStructuresInflowModelType.LowSill: + return StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelLowSillStructure; + case ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert: + return StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelFloodedCulvertStructure; + default: + throw new NotSupportedException($"Value '{type}' is not supported."); + } + } + + /// + /// Converts to . + /// + /// The to convert. + /// The converted . + /// Thrown when is not supported. + private static ConfigurationStabilityPointStructuresInflowModelType ConvertToConfigurationInflowModelType(string text) + { + switch (text) + { + case StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelLowSillStructure: + return ConfigurationStabilityPointStructuresInflowModelType.LowSill; + case StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelFloodedCulvertStructure: + return ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert; + default: + throw new NotSupportedException($"Value '{text}' is not supported."); + } + } + + /// + /// Converts to . + /// + /// The to convert. + /// The converted . + /// Thrown when is not supported. + private static ConfigurationStabilityPointStructuresInflowModelType ConvertToConfigurationInflowModelType(StabilityPointStructureInflowModelType inflowModelType) + { + switch (inflowModelType) + { + case StabilityPointStructureInflowModelType.LowSill: + return ConfigurationStabilityPointStructuresInflowModelType.LowSill; + case StabilityPointStructureInflowModelType.FloodedCulvert: + return ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert; + default: + throw new NotSupportedException($"Value '{inflowModelType}' is not supported."); + } + } + } +} \ No newline at end of file Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Ringtoets.StabilityPointStructures.IO.csproj =================================================================== diff -u -raa1c2bfcb381ab5ae4b35dcfce35e09616325563 -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Ringtoets.StabilityPointStructures.IO.csproj (.../Ringtoets.StabilityPointStructures.IO.csproj) (revision aa1c2bfcb381ab5ae4b35dcfce35e09616325563) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Ringtoets.StabilityPointStructures.IO.csproj (.../Ringtoets.StabilityPointStructures.IO.csproj) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -44,8 +44,8 @@ Properties\GlobalAssembly.cs - - + + Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/StabilityPointStructuresCalculationConfiguration.cs =================================================================== diff -u -re37e45f2e21aa0bf7cb46da85878c18cc2586efe -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/StabilityPointStructuresCalculationConfiguration.cs (.../StabilityPointStructuresCalculationConfiguration.cs) (revision e37e45f2e21aa0bf7cb46da85878c18cc2586efe) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/StabilityPointStructuresCalculationConfiguration.cs (.../StabilityPointStructuresCalculationConfiguration.cs) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -84,7 +84,7 @@ /// /// Gets or sets the inflow model type of the structure. /// - public ConfigurationInflowModelType? InflowModelType { get; set; } + public ConfigurationStabilityPointStructuresInflowModelType? InflowModelType { get; set; } /// /// Gets or sets the stochast configuration for the inside water level of the structure. Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Writers/StabilityPointStructuresCalculationConfigurationWriter.cs =================================================================== diff -u -re37e45f2e21aa0bf7cb46da85878c18cc2586efe -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Writers/StabilityPointStructuresCalculationConfigurationWriter.cs (.../StabilityPointStructuresCalculationConfigurationWriter.cs) (revision e37e45f2e21aa0bf7cb46da85878c18cc2586efe) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.IO/Writers/StabilityPointStructuresCalculationConfigurationWriter.cs (.../StabilityPointStructuresCalculationConfigurationWriter.cs) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -121,14 +121,14 @@ configuration.ThresholdHeightOpenWeir); } - private static void WriteConfigurationInflowModelTypeWhenAvailable(XmlWriter writer, ConfigurationInflowModelType? configuration) + private static void WriteConfigurationInflowModelTypeWhenAvailable(XmlWriter writer, ConfigurationStabilityPointStructuresInflowModelType? configuration) { if (!configuration.HasValue) { return; } - var converter = new ConfigurationInflowModelTypeConverter(); + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); writer.WriteElementString(StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelTypeElement, converter.ConvertToInvariantString(configuration.Value)); } Fisheye: Tag 306d53c7436437d23464f9d0bf104fe699eb7e3f refers to a dead (removed) revision in file `Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/ConfigurationInflowModelTypeConverterTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs =================================================================== diff -u --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs (revision 0) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -0,0 +1,272 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using System.ComponentModel; +using System.Globalization; +using NUnit.Framework; +using Ringtoets.StabilityPointStructures.Data; + +namespace Ringtoets.StabilityPointStructures.IO.Test +{ + [TestFixture] + public class ConfigurationStabilityPointStructuresInflowModelTypeConverterTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Assert + Assert.IsInstanceOf(converter); + } + + [Test] + public void CanConvertTo_String_ReturnTrue() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertToString = converter.CanConvertTo(typeof(string)); + + // Assert + Assert.IsTrue(canConvertToString); + } + + [Test] + public void CanConvertTo_StabilityPointStructureInflowModelType_ReturnTrue() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertToString = converter.CanConvertTo(typeof(StabilityPointStructureInflowModelType)); + + // Assert + Assert.IsTrue(canConvertToString); + } + + [Test] + public void CanConvertTo_OtherTypeThanStringOrStabilityPointStructureInflowModelType_ReturnFalse() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertToNonString = converter.CanConvertTo(typeof(object)); + + // Assert + Assert.IsFalse(canConvertToNonString); + } + + [Test] + [TestCase(ConfigurationStabilityPointStructuresInflowModelType.LowSill, StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelLowSillStructure)] + [TestCase(ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert, StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelFloodedCulvertStructure)] + public void ConvertTo_ForAllEnumValues_ReturnExpectedText(ConfigurationStabilityPointStructuresInflowModelType value, + string expectedText) + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + object result = converter.ConvertTo(null, CultureInfo.CurrentCulture, value, typeof(string)); + + // Assert + Assert.AreEqual(expectedText, result); + } + + [Test] + public void ConvertTo_InvalidType_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + const ConfigurationStabilityPointStructuresInflowModelType invalidValue = (ConfigurationStabilityPointStructuresInflowModelType) 99999; + + // Call + TestDelegate call = () => converter.ConvertTo(invalidValue, typeof(object)); + + // Assert + Assert.Throws(call); + } + + [Test] + public void ConvertTo_ConfigurationInflowModelTypeToString_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + const ConfigurationStabilityPointStructuresInflowModelType invalidValue = (ConfigurationStabilityPointStructuresInflowModelType) 99999; + + // Call + TestDelegate call = () => converter.ConvertTo(invalidValue, typeof(string)); + + // Assert + string message = Assert.Throws(call).Message; + Assert.AreEqual($"Value '{invalidValue}' is not supported.", message); + } + + [Test] + public void ConvertTo_InvalidConfigurationInflowModelTypeToStabilityPointStructureInflowModelType_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + const ConfigurationStabilityPointStructuresInflowModelType invalidValue = (ConfigurationStabilityPointStructuresInflowModelType) 99999; + + // Call + TestDelegate call = () => converter.ConvertTo(invalidValue, typeof(StabilityPointStructureInflowModelType)); + + // Assert + string message = Assert.Throws(call).Message; + Assert.AreEqual($"Value '{invalidValue}' is not supported.", message); + } + + [Test] + [TestCase(ConfigurationStabilityPointStructuresInflowModelType.LowSill, StabilityPointStructureInflowModelType.LowSill)] + [TestCase(ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert, StabilityPointStructureInflowModelType.FloodedCulvert)] + public void ConvertTo_ForAllEnumValues_ReturnExpectedType(ConfigurationStabilityPointStructuresInflowModelType value, + StabilityPointStructureInflowModelType expectedText) + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + object result = converter.ConvertTo(null, CultureInfo.CurrentCulture, value, typeof(StabilityPointStructureInflowModelType)); + + // Assert + Assert.AreEqual(expectedText, result); + } + + [Test] + public void CanConvertFrom_String_ReturnTrue() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertFromString = converter.CanConvertFrom(typeof(string)); + + // Assert + Assert.IsTrue(canConvertFromString); + } + + [Test] + public void CanConvertFrom_StabilityPointStructureInflowModelType_ReturnTrue() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertFromString = converter.CanConvertFrom(typeof(StabilityPointStructureInflowModelType)); + + // Assert + Assert.IsTrue(canConvertFromString); + } + + [Test] + public void CanConvertFrom_OtherThanStringOrStabilityPointStructureInflowModelType_ReturnFalse() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + bool canConvertFromString = converter.CanConvertFrom(typeof(object)); + + // Assert + Assert.IsFalse(canConvertFromString); + } + + [Test] + [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelLowSillStructure, ConfigurationStabilityPointStructuresInflowModelType.LowSill)] + [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.InflowModelFloodedCulvertStructure, ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert)] + public void ConvertFrom_Text_ReturnExpectedConfigurationInflowModelType(string value, + ConfigurationStabilityPointStructuresInflowModelType expectedResult) + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + object result = converter.ConvertFrom(value); + + // Assert + Assert.AreEqual(expectedResult, result); + } + + [Test] + public void ConvertFrom_InvalidType_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + TestDelegate call = () => converter.ConvertFrom(new object()); + + // Assert + Assert.Throws(call); + } + + [Test] + public void ConvertFrom_InvalidText_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + const string invalidValue = "some text"; + + // Call + TestDelegate call = () => converter.ConvertFrom(invalidValue); + + // Assert + string message = Assert.Throws(call).Message; + Assert.AreEqual($"Value '{invalidValue}' is not supported.", message); + } + + [Test] + public void ConvertFrom_InvalidStabilityPointStructureInflowModelType_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + const StabilityPointStructureInflowModelType invalidValue = (StabilityPointStructureInflowModelType) 983; + + // Call + TestDelegate call = () => converter.ConvertFrom(invalidValue); + + // Assert + string message = Assert.Throws(call).Message; + Assert.AreEqual($"Value '{invalidValue}' is not supported.", message); + } + + [Test] + [TestCase(StabilityPointStructureInflowModelType.FloodedCulvert, ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert)] + [TestCase(StabilityPointStructureInflowModelType.LowSill, ConfigurationStabilityPointStructuresInflowModelType.LowSill)] + public void ConvertFrom_StabilityPointStructureInflowModelType_ReturnExpectedConfigurationInflowModelType(StabilityPointStructureInflowModelType value, + ConfigurationStabilityPointStructuresInflowModelType expectedResult) + { + // Setup + var converter = new ConfigurationStabilityPointStructuresInflowModelTypeConverter(); + + // Call + object result = converter.ConvertFrom(value); + + // Assert + Assert.AreEqual(expectedResult, result); + } + } +} \ No newline at end of file Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Ringtoets.StabilityPointStructures.IO.Test.csproj =================================================================== diff -u -raa1c2bfcb381ab5ae4b35dcfce35e09616325563 -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Ringtoets.StabilityPointStructures.IO.Test.csproj (.../Ringtoets.StabilityPointStructures.IO.Test.csproj) (revision aa1c2bfcb381ab5ae4b35dcfce35e09616325563) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Ringtoets.StabilityPointStructures.IO.Test.csproj (.../Ringtoets.StabilityPointStructures.IO.Test.csproj) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -47,7 +47,7 @@ Properties\GlobalAssembly.cs - + Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/StabilityPointStructuresCalculationConfigurationTest.cs =================================================================== diff -u -re37e45f2e21aa0bf7cb46da85878c18cc2586efe -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/StabilityPointStructuresCalculationConfigurationTest.cs (.../StabilityPointStructuresCalculationConfigurationTest.cs) (revision e37e45f2e21aa0bf7cb46da85878c18cc2586efe) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/StabilityPointStructuresCalculationConfigurationTest.cs (.../StabilityPointStructuresCalculationConfigurationTest.cs) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -93,7 +93,7 @@ var failureCollisionEnergy = new MeanVariationCoefficientStochastConfiguration(); double failureProbabilityRepairClosure = random.NextDouble(); var flowVelocityStructureClosable = new MeanVariationCoefficientStochastConfiguration(); - var inflowModelType = random.NextEnumValue(); + var inflowModelType = random.NextEnumValue(); var insideWaterLevel = new MeanStandardDeviationStochastConfiguration(); var insideWaterLevelFailureConstruction = new MeanStandardDeviationStochastConfiguration(); var levelCrestStructure = new MeanStandardDeviationStochastConfiguration(); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Writers/StabilityPointStructuresCalculationConfigurationWriterTest.cs =================================================================== diff -u -re37e45f2e21aa0bf7cb46da85878c18cc2586efe -r306d53c7436437d23464f9d0bf104fe699eb7e3f --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Writers/StabilityPointStructuresCalculationConfigurationWriterTest.cs (.../StabilityPointStructuresCalculationConfigurationWriterTest.cs) (revision e37e45f2e21aa0bf7cb46da85878c18cc2586efe) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Writers/StabilityPointStructuresCalculationConfigurationWriterTest.cs (.../StabilityPointStructuresCalculationConfigurationWriterTest.cs) (revision 306d53c7436437d23464f9d0bf104fe699eb7e3f) @@ -159,7 +159,7 @@ }, ForeshoreProfileName = "profiel1", HydraulicBoundaryLocationName = "Locatie1", - InflowModelType = ConfigurationInflowModelType.FloodedCulvert, + InflowModelType = ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert, InsideWaterLevel = new MeanStandardDeviationStochastConfiguration { Mean = 0.1,