Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Integration.Test/GrassCoverErosionInwardsInputContextPropertiesIntegrationTest.cs =================================================================== diff -u -r8900f570b33f0de1a512fc5b2509771e1201672c -r0d301f769dc84d57979a55d902c498afe5d93e19 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Integration.Test/GrassCoverErosionInwardsInputContextPropertiesIntegrationTest.cs (.../GrassCoverErosionInwardsInputContextPropertiesIntegrationTest.cs) (revision 8900f570b33f0de1a512fc5b2509771e1201672c) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Integration.Test/GrassCoverErosionInwardsInputContextPropertiesIntegrationTest.cs (.../GrassCoverErosionInwardsInputContextPropertiesIntegrationTest.cs) (revision 0d301f769dc84d57979a55d902c498afe5d93e19) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System.Collections.Generic; using System.Linq; using Core.Common.Base; using Core.Common.Base.Geometry; @@ -74,16 +73,19 @@ failureMechanism.CalculationsGroup.Children.Add(calculation); - failureMechanism.AddSection(new FailureMechanismSection("firstSection", new List + FailureMechanismTestHelper.SetSections(failureMechanism, new[] { - new Point2D(0.0, 0.0), - new Point2D(1.1, 1.1) - })); - failureMechanism.AddSection(new FailureMechanismSection("secondSection", new List - { - new Point2D(1.1, 1.1), - new Point2D(2.2, 2.2) - })); + new FailureMechanismSection("firstSection", new[] + { + new Point2D(0.0, 0.0), + new Point2D(1.1, 1.1) + }), + new FailureMechanismSection("secondSection", new[] + { + new Point2D(1.1, 1.1), + new Point2D(2.2, 2.2) + }) + }); GrassCoverErosionInwardsFailureMechanismSectionResult[] sectionResults = failureMechanism.SectionResults.ToArray(); sectionResults[0].Calculation = calculation; @@ -140,16 +142,19 @@ failureMechanism.CalculationsGroup.Children.Add(calculation1); failureMechanism.CalculationsGroup.Children.Add(calculation2); - failureMechanism.AddSection(new FailureMechanismSection("firstSection", new List + FailureMechanismTestHelper.SetSections(failureMechanism, new[] { - new Point2D(0.0, 0.0), - new Point2D(1.1, 1.1) - })); - failureMechanism.AddSection(new FailureMechanismSection("secondSection", new List - { - new Point2D(1.1, 1.1), - new Point2D(2.2, 2.2) - })); + new FailureMechanismSection("firstSection", new[] + { + new Point2D(0.0, 0.0), + new Point2D(1.1, 1.1) + }), + new FailureMechanismSection("secondSection", new[] + { + new Point2D(1.1, 1.1), + new Point2D(2.2, 2.2) + }) + }); GrassCoverErosionInwardsFailureMechanismSectionResult[] sectionResults = failureMechanism.SectionResults.ToArray(); sectionResults[0].Calculation = calculation1;