Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructureTreeNodeInfoTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -reabf1a800431a23b06c8d81dfbf0f46a71bb659b --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructureTreeNodeInfoTest.cs (.../ClosingStructureTreeNodeInfoTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructureTreeNodeInfoTest.cs (.../ClosingStructureTreeNodeInfoTest.cs) (revision eabf1a800431a23b06c8d81dfbf0f46a71bb659b) @@ -94,7 +94,7 @@ // Setup mocks.ReplayAll(); const string name = "very nice name!"; - ClosingStructure structure = new TestClosingStructure(name); + ClosingStructure structure = new TestClosingStructure(name, "id"); // Call string text = info.Text(structure); @@ -159,9 +159,9 @@ calculation3Observer.Expect(o => o.UpdateObserver()).Repeat.Never(); mocks.ReplayAll(); - var nodeData = new TestClosingStructure(new Point2D(0, 0)); - var otherProfile1 = new TestClosingStructure(new Point2D(1, 0)); - var otherProfile2 = new TestClosingStructure(new Point2D(5, 0)); + var nodeData = new TestClosingStructure(new Point2D(0, 0), "first"); + var otherStructure1 = new TestClosingStructure(new Point2D(1, 0), "second"); + var otherStructure2 = new TestClosingStructure(new Point2D(5, 0), "thrid"); var calculation1 = new StructuresCalculation { @@ -175,27 +175,21 @@ { InputParameters = { - Structure = otherProfile1 + Structure = otherStructure1 } }; calculation2.InputParameters.Attach(calculation2Observer); var calculation3 = new StructuresCalculation { InputParameters = { - Structure = otherProfile2 + Structure = otherStructure2 } }; calculation3.InputParameters.Attach(calculation3Observer); var failureMechanism = new ClosingStructuresFailureMechanism { - ClosingStructures = - { - nodeData, - otherProfile1, - otherProfile2 - }, CalculationsGroup = { Children = @@ -206,6 +200,12 @@ } } }; + failureMechanism.ClosingStructures.AddRange(new[] + { + nodeData, + otherStructure1, + otherStructure2 + }, "some path"); failureMechanism.AddSection(new FailureMechanismSection("A", new[] { new Point2D(0, 0),