Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -rd6d1b03ce8dc3c4e6bba565a85ea310f6196adea -r3239ee53997bb2ab3ca97266f6a5f83868049535 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision d6d1b03ce8dc3c4e6bba565a85ea310f6196adea) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 3239ee53997bb2ab3ca97266f6a5f83868049535) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using Core.Common.Base; @@ -441,7 +440,7 @@ var observer = mocks.StrictMock(); observer.Expect(o => o.UpdateObserver()); - var pipingFailureMechanism = GetFailureMechanism(); + var pipingFailureMechanism = TestPipingFailureMechanism.GetFailureMechanismWithSurfaceLinesAndStochasticSoilModels(); var surfaceLines = pipingFailureMechanism.SurfaceLines.ToArray(); var elementToBeRemoved = new PipingCalculationScenario(new GeneralPipingInput()) @@ -732,50 +731,5 @@ base.TearDown(); } - - /// - /// Creates a new instance of with sections and a surface line. - /// - /// A new instance of . - private static PipingFailureMechanism GetFailureMechanism() - { - var surfaceLine = new RingtoetsPipingSurfaceLine - { - Name = "Surface line", - ReferenceLineIntersectionWorldPoint = new Point2D(0.0, 0.0) - }; - - surfaceLine.SetGeometry(new[] - { - new Point3D(0.0, 5.0, 0.0), - new Point3D(0.0, 0.0, 1.0), - new Point3D(0.0, -5.0, 0.0) - }); - - var failureMechanism = new PipingFailureMechanism(); - const string arbitraryFilePath = "path"; - failureMechanism.SurfaceLines.AddRange(new[] - { - surfaceLine - }, arbitraryFilePath); - failureMechanism.StochasticSoilModels.AddRange(new[] - { - new TestStochasticSoilModel - { - Geometry = - { - new Point2D(0.0, 0.0), new Point2D(5.0, 0.0) - } - } - }, arbitraryFilePath); - - failureMechanism.AddSection(new FailureMechanismSection("Section", new List - { - new Point2D(0.0, 0.0), - new Point2D(5.0, 0.0) - })); - - return failureMechanism; - } } } \ No newline at end of file