Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs =================================================================== diff -u -r475dc184b7a25177dd0beb2b59eba8e651319124 -r770689b198dfd2e2565694dfe376e7a225be134d --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs (.../AssemblyResultPerSectionViewTest.cs) (revision 475dc184b7a25177dd0beb2b59eba8e651319124) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultPerSectionViewTest.cs (.../AssemblyResultPerSectionViewTest.cs) (revision 770689b198dfd2e2565694dfe376e7a225be134d) @@ -454,10 +454,8 @@ bool hasManualAssembly) { // Given - var assessmentSection = new AssessmentSection(new Random(21).NextEnumValue()) - { - ReferenceLine = ReferenceLineTestFactory.CreateReferenceLineWithGeometry() - }; + var assessmentSection = new AssessmentSection(new Random(21).NextEnumValue()); + assessmentSection.ReferenceLine.SetGeometry(ReferenceLineTestFactory.CreateReferenceLineGeometry()); foreach (IHasSectionResults failureMechanism in assessmentSection.GetFailureMechanisms() .Cast>()) { Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/AssemblyExporterTest.cs =================================================================== diff -u -r2a81f01756e227d5ce93717b21b87e8a5cd5fcbb -r770689b198dfd2e2565694dfe376e7a225be134d --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/AssemblyExporterTest.cs (.../AssemblyExporterTest.cs) (revision 2a81f01756e227d5ce93717b21b87e8a5cd5fcbb) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/AssemblyExporterTest.cs (.../AssemblyExporterTest.cs) (revision 770689b198dfd2e2565694dfe376e7a225be134d) @@ -243,20 +243,17 @@ private static AssessmentSection CreateConfiguredAssessmentSection() { - var referenceLine = new ReferenceLine(); - referenceLine.SetGeometry(new[] + var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) { + Name = "assessmentSectionName", + Id = "assessmentSectionId" + }; + assessmentSection.ReferenceLine.SetGeometry(new[] + { new Point2D(1, 1), new Point2D(2, 2) }); - var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) - { - Name = "assessmentSectionName", - Id = "assessmentSectionId", - ReferenceLine = referenceLine - }; - FailureMechanismTestHelper.AddSections(assessmentSection.Piping, 2); FailureMechanismTestHelper.AddSections(assessmentSection.MacroStabilityInwards, 2); FailureMechanismTestHelper.AddSections(assessmentSection.GrassCoverErosionInwards, 2); Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs =================================================================== diff -u -r6075ed31e2212aed3206c22491e207289696e891 -r770689b198dfd2e2565694dfe376e7a225be134d --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs (.../ExportableAssessmentSectionFactoryTest.cs) (revision 6075ed31e2212aed3206c22491e207289696e891) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs (.../ExportableAssessmentSectionFactoryTest.cs) (revision 770689b198dfd2e2565694dfe376e7a225be134d) @@ -64,9 +64,9 @@ var assessmentSection = new AssessmentSection(random.NextEnumValue()) { Name = name, - Id = id, - ReferenceLine = ReferenceLineTestFactory.CreateReferenceLineWithGeometry() + Id = id }; + assessmentSection.ReferenceLine.SetGeometry(ReferenceLineTestFactory.CreateReferenceLineGeometry()); FailureMechanismTestHelper.AddSections(assessmentSection.Piping, random.Next(1, 10)); FailureMechanismTestHelper.AddSections(assessmentSection.MacroStabilityInwards, random.Next(1, 10)); @@ -136,9 +136,9 @@ var random = new Random(21); var assessmentSection = new AssessmentSection(random.NextEnumValue()) { - ReferenceLine = ReferenceLineTestFactory.CreateReferenceLineWithGeometry(), Id = "1" }; + assessmentSection.ReferenceLine.SetGeometry(ReferenceLineTestFactory.CreateReferenceLineGeometry()); PipingFailureMechanism failureMechanism = assessmentSection.Piping; failureMechanism.IsRelevant = true;