Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultViewTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -r1a65cb67261da126d57a2c890acfb78b4347eb3d --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultViewTest.cs (.../StrengthStabilityLengthwiseConstructionResultViewTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultViewTest.cs (.../StrengthStabilityLengthwiseConstructionResultViewTest.cs) (revision 1a65cb67261da126d57a2c890acfb78b4347eb3d) @@ -22,11 +22,10 @@ using System; using System.Windows.Forms; using Core.Common.Base; -using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Extensions.Forms; using NUnit.Framework; -using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.Views; using Ringtoets.Common.Primitives; using Ringtoets.Integration.Data.StandAlone; @@ -91,40 +90,27 @@ public void FailureMechanismResultView_WithFailureMechanismSectionResultAssigned_SectionsAddedAsRows() { // Setup - var section1 = new FailureMechanismSection("Section 1", new[] - { - new Point2D(0, 0) - }); - var section2 = new FailureMechanismSection("Section 2", new[] - { - new Point2D(0, 0) - }); - var section3 = new FailureMechanismSection("Section 3", new[] - { - new Point2D(0, 0) - }); - var section4 = new FailureMechanismSection("Section 4", new[] - { - new Point2D(0, 0) - }); - var random = new Random(21); - var result1 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section1) + var result1 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult( + FailureMechanismSectionTestFactory.CreateFailureMechanismSection("Section 1")) { SimpleAssessmentResult = SimpleAssessmentResultType.None, AssessmentLayerThree = random.NextRoundedDouble() }; - var result2 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section2) + var result2 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult( + FailureMechanismSectionTestFactory.CreateFailureMechanismSection("Section 2")) { SimpleAssessmentResult = SimpleAssessmentResultType.NotApplicable, AssessmentLayerThree = random.NextRoundedDouble() }; - var result3 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section3) + var result3 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult( + FailureMechanismSectionTestFactory.CreateFailureMechanismSection("Section 3")) { SimpleAssessmentResult = SimpleAssessmentResultType.ProbabilityNegligible, AssessmentLayerThree = random.NextRoundedDouble() }; - var result4 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section4) + var result4 = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult( + FailureMechanismSectionTestFactory.CreateFailureMechanismSection("Section 4")) { SimpleAssessmentResult = SimpleAssessmentResultType.AssessFurther, AssessmentLayerThree = random.NextRoundedDouble() @@ -191,12 +177,9 @@ SimpleAssessmentResultType simpleAssessmentResult) { // Given - var section = new FailureMechanismSection("Section 1", new[] - { - new Point2D(0, 0) - }); var random = new Random(21); - var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section) + var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult( + FailureMechanismSectionTestFactory.CreateFailureMechanismSection()) { SimpleAssessmentResult = simpleAssessmentResult, AssessmentLayerThree = random.NextRoundedDouble()