Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/AssessmentSection.cs =================================================================== diff -u -r4b37694736a8ccec603ce7f9b71e6c095186b25d -r2679bee7a95ab50b5a5f2433cfce8ca2ce0cd9b6 --- Ringtoets/Integration/src/Ringtoets.Integration.Data/AssessmentSection.cs (.../AssessmentSection.cs) (revision 4b37694736a8ccec603ce7f9b71e6c095186b25d) +++ Ringtoets/Integration/src/Ringtoets.Integration.Data/AssessmentSection.cs (.../AssessmentSection.cs) (revision 2679bee7a95ab50b5a5f2433cfce8ca2ce0cd9b6) @@ -61,7 +61,6 @@ private readonly ObservableList waveHeightCalculationsForLowerLimitNorm = new ObservableList(); private readonly ObservableList waveHeightCalculationsForFactorizedLowerLimitNorm = new ObservableList(); - private ReferenceLine referenceLine; private PipingFailureMechanism piping; private GrassCoverErosionInwardsFailureMechanism grassCoverErosionInwards; private MacroStabilityInwardsFailureMechanism macroStabilityInwards; @@ -556,19 +555,7 @@ public AssessmentSectionComposition Composition { get; private set; } - public ReferenceLine ReferenceLine - { - get - { - return referenceLine; - } - set - { - referenceLine = value; - double sectionLength = value?.Length ?? double.NaN; - WaveImpactAsphaltCover.GeneralWaveImpactAsphaltCoverInput.SectionLength = sectionLength; - } - } + public ReferenceLine ReferenceLine { get; set; } public FailureMechanismContribution FailureMechanismContribution { get; } Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs =================================================================== diff -u -r4b37694736a8ccec603ce7f9b71e6c095186b25d -r2679bee7a95ab50b5a5f2433cfce8ca2ce0cd9b6 --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision 4b37694736a8ccec603ce7f9b71e6c095186b25d) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision 2679bee7a95ab50b5a5f2433cfce8ca2ce0cd9b6) @@ -99,8 +99,6 @@ AssertExpectedContributions(composition, assessmentSection); - Assert.AreEqual(double.NaN, assessmentSection.WaveImpactAsphaltCover.GeneralWaveImpactAsphaltCoverInput.SectionLength); - Assert.IsTrue(assessmentSection.BackgroundData.IsVisible); Assert.AreEqual(0.0, assessmentSection.BackgroundData.Transparency.Value); Assert.AreEqual("Bing Maps - Satelliet", assessmentSection.BackgroundData.Name); @@ -366,44 +364,6 @@ } [Test] - public void ReferenceLine_SomeReferenceLine_RelevantGeneralInputSectionLengthSet() - { - // Setup - var random = new Random(21); - var assessmentSection = new AssessmentSection(random.NextEnumValue()); - var referenceLine = new ReferenceLine(); - - Point2D[] somePointsCollection = - { - new Point2D(random.NextDouble(), random.NextDouble()), - new Point2D(random.NextDouble(), random.NextDouble()), - new Point2D(random.NextDouble(), random.NextDouble()), - new Point2D(random.NextDouble(), random.NextDouble()) - }; - referenceLine.SetGeometry(somePointsCollection); - - // Call - assessmentSection.ReferenceLine = referenceLine; - - // Assert - Assert.AreEqual(referenceLine.Length, assessmentSection.WaveImpactAsphaltCover.GeneralWaveImpactAsphaltCoverInput.SectionLength); - } - - [Test] - public void ReferenceLine_Null_RelevantGeneralInputSectionLengthNaN() - { - // Setup - var random = new Random(21); - var assessmentSection = new AssessmentSection(random.NextEnumValue()); - - // Call - assessmentSection.ReferenceLine = null; - - // Assert - Assert.AreEqual(double.NaN, assessmentSection.WaveImpactAsphaltCover.GeneralWaveImpactAsphaltCoverInput.SectionLength); - } - - [Test] public void SetHydraulicBoundaryLocationCalculations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() { // Setup