Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rd6d1b03ce8dc3c4e6bba565a85ea310f6196adea -r3239ee53997bb2ab3ca97266f6a5f83868049535 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision d6d1b03ce8dc3c4e6bba565a85ea310f6196adea) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 3239ee53997bb2ab3ca97266f6a5f83868049535) @@ -1278,7 +1278,7 @@ var observer = mocks.StrictMock(); observer.Expect(o => o.UpdateObserver()); var group = new CalculationGroup(); - var pipingFailureMechanism = GetFailureMechanism(); + var pipingFailureMechanism = TestPipingFailureMechanism.GetFailureMechanismWithSurfaceLinesAndStochasticSoilModels(); var surfaceLines = pipingFailureMechanism.SurfaceLines.ToArray(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()) @@ -1329,50 +1329,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