Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -r6173a5eb258ea7b50a5f4aac71d2448db9e211c3 -r8ba84ca6be21278d394e6763eb202dd8132db92b --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision 6173a5eb258ea7b50a5f4aac71d2448db9e211c3) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision 8ba84ca6be21278d394e6763eb202dd8132db92b) @@ -52,10 +52,11 @@ } [Test] - [TestCase(true, 0.98, "haha", "hihi", 0.0, 3.4, 123)] - [TestCase(false, 0.0, null, null, double.NaN, double.NaN, 321)] + [TestCase(true, 0.98, "haha", "hihi", 0.0, 3.4, 5.8, 123)] + [TestCase(false, 0.0, null, null, double.NaN, double.NaN, double.NaN, 321)] public void Read_ValidEntity_ReturnPipingCalculationScenario(bool isRelevant, double contribution, - string name, string comments, double entryPoint, double exitPoint, int seed) + string name, string comments, double entryPoint, double exitPoint, + double assessmentLevel, int seed) { // Setup var random = new Random(seed); @@ -72,6 +73,7 @@ PhreaticLevelExitStandardDeviation = GetRandomNullableDoubleInRange(random, 0, 9999.99), DampingFactorExitMean = GetRandomNullableDoubleInRange(random, 1e-6, 9999.99), DampingFactorExitStandardDeviation = GetRandomNullableDoubleInRange(random, 0, 9999.99), + AssessmentLevel = assessmentLevel.ToNaNAsNull() }; var collector = new ReadConversionCollector(); @@ -104,6 +106,7 @@ AssertRoundedDouble(entity.PhreaticLevelExitStandardDeviation, calculation.InputParameters.PhreaticLevelExit.StandardDeviation); AssertRoundedDouble(entity.DampingFactorExitMean, calculation.InputParameters.DampingFactorExit.Mean); AssertRoundedDouble(entity.DampingFactorExitStandardDeviation, calculation.InputParameters.DampingFactorExit.StandardDeviation); + Assert.AreEqual(entity.AssessmentLevel.ToNullAsNaN(), calculation.InputParameters.AssessmentLevel.Value); Assert.IsNull(calculation.InputParameters.SurfaceLine); Assert.IsNull(calculation.InputParameters.HydraulicBoundaryLocation); @@ -189,6 +192,7 @@ EntryPointL = 1, ExitPointL = 2, DampingFactorExitMean = 1, + AssessmentLevel = 5.81 }; var collector = new ReadConversionCollector(); @@ -199,6 +203,7 @@ // Assert Assert.AreSame(hydraulicBoundaryLocation, calculation.InputParameters.HydraulicBoundaryLocation); + Assert.AreEqual(hydraulicBoundaryLocation.DesignWaterLevel, calculation.InputParameters.AssessmentLevel); } [Test]