Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Input/Structures/StructuresClosureLowSillCalculationInputTest.cs =================================================================== diff -u -r9a46b1398c3a83b8f5c06254ccb9808f33eb2531 -r2a896243ca24205f8e98db1b61e8148d1d9b9062 --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Input/Structures/StructuresClosureLowSillCalculationInputTest.cs (.../StructuresClosureLowSillCalculationInputTest.cs) (revision 9a46b1398c3a83b8f5c06254ccb9808f33eb2531) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.Test/Data/Input/Structures/StructuresClosureLowSillCalculationInputTest.cs (.../StructuresClosureLowSillCalculationInputTest.cs) (revision 2a896243ca24205f8e98db1b61e8148d1d9b9062) @@ -37,10 +37,10 @@ { // Setup const int hydraulicBoundaryLocationId = 1000; - var section = new HydraRingSection(1, double.NaN, double.NaN); var forelandPoints = Enumerable.Empty(); var breakWater = new HydraRingBreakWater(1, 1.1); + const double sectionNormal = 31.1; const double gravitationalAcceleration = 1.1; const double factorStormDurationOpenStructure = 2.2; const double failureProbabilityOpenStructure = 3.3; @@ -73,7 +73,8 @@ const double widthFlowAperturesVariation = 30.0; // Call - var input = new StructuresClosureLowSillCalculationInput(hydraulicBoundaryLocationId, section, + var input = new StructuresClosureLowSillCalculationInput(hydraulicBoundaryLocationId, + sectionNormal, forelandPoints, breakWater, gravitationalAcceleration, factorStormDurationOpenStructure, @@ -101,7 +102,11 @@ Assert.AreEqual(1, input.CalculationTypeId); Assert.AreEqual(58, input.VariableId); Assert.AreEqual(HydraRingFailureMechanismType.StructuresClosure, input.FailureMechanismType); - Assert.AreSame(section, input.Section); + + HydraRingSection section = input.Section; + Assert.AreEqual(1, section.SectionId); + Assert.IsNaN(section.SectionLength); + Assert.AreEqual(sectionNormal, section.CrossSectionNormal); Assert.AreSame(forelandPoints, input.ForelandsPoints); Assert.AreSame(breakWater, input.BreakWater); HydraRingDataEqualityHelper.AreEqual(GetDefaultVariables().ToArray(), input.Variables.ToArray()); @@ -115,7 +120,7 @@ public void GetSubMechanismModelId_Always_ReturnsExpectedValues(int subMechanismModelId, int? expectedSubMechanismModelId) { // Setup - var input = new StructuresClosureLowSillCalculationInput(111, new HydraRingSection(1, double.NaN, double.NaN), + var input = new StructuresClosureLowSillCalculationInput(111, double.NaN, Enumerable.Empty(), new HydraRingBreakWater(1, 1.1), 1.1, 222, 333, 5.5, 6, 7.7, 8.8, 11, 22, 33, 44, 55,