Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -rc1594afa56f02899bd122fc4fd4ccf4d76b236b7 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs (.../HeightStructureTreeNodeInfoTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs (.../HeightStructureTreeNodeInfoTest.cs) (revision c1594afa56f02899bd122fc4fd4ccf4d76b236b7) @@ -159,9 +159,9 @@ calculation3Observer.Expect(o => o.UpdateObserver()).Repeat.Never(); mocks.ReplayAll(); - var nodeData = new TestHeightStructure(new Point2D(1, 0)); - var otherProfile1 = new TestHeightStructure(new Point2D(2, 0)); - var otherProfile2 = new TestHeightStructure(new Point2D(6, 0)); + var nodeData = new TestHeightStructure(new Point2D(1, 0), "Id1"); + var otherProfile1 = new TestHeightStructure(new Point2D(2, 0), "Id2"); + var otherProfile2 = new TestHeightStructure(new Point2D(6, 0), "Id6"); var calculation1 = new StructuresCalculation { @@ -190,12 +190,6 @@ var failureMechanism = new HeightStructuresFailureMechanism { - HeightStructures = - { - nodeData, - otherProfile1, - otherProfile2 - }, CalculationsGroup = { Children = @@ -206,6 +200,14 @@ } } }; + + failureMechanism.HeightStructuresCollection.AddRange(new[] + { + nodeData, + otherProfile1, + otherProfile2 + }, "some location"); + failureMechanism.AddSection(new FailureMechanismSection("A", new[] { new Point2D(0, 0), @@ -216,7 +218,7 @@ new Point2D(4, 0), new Point2D(9, 0) })); - failureMechanism.HeightStructures.Attach(observer); + failureMechanism.HeightStructuresCollection.Attach(observer); failureMechanism.SectionResults.ElementAt(0).Calculation = calculation1; failureMechanism.SectionResults.ElementAt(1).Calculation = calculation3;