Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -reabf1a800431a23b06c8d81dfbf0f46a71bb659b --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision eabf1a800431a23b06c8d81dfbf0f46a71bb659b) @@ -293,7 +293,10 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - failureMechanism.ClosingStructures.Add(new TestClosingStructure()); + failureMechanism.ClosingStructures.AddRange(new[] + { + new TestClosingStructure() + }, "some path"); var assessmentSection = mocks.Stub(); assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); var groupContext = new ClosingStructuresCalculationGroupContext(group, @@ -892,11 +895,6 @@ var existingCalculation = new StructuresCalculation(); var failureMechanism = new ClosingStructuresFailureMechanism { - ClosingStructures = - { - structure1, - structure2 - }, CalculationsGroup = { Children = @@ -906,6 +904,11 @@ } } }; + failureMechanism.ClosingStructures.AddRange(new[] + { + structure1, + structure2 + }, "some path"); var nodeData = new ClosingStructuresCalculationGroupContext(failureMechanism.CalculationsGroup, failureMechanism, @@ -959,14 +962,12 @@ ClosingStructure structure1 = new TestClosingStructure("Structure 1"); ClosingStructure structure2 = new TestClosingStructure("Structure 2"); - var failureMechanism = new ClosingStructuresFailureMechanism + var failureMechanism = new ClosingStructuresFailureMechanism(); + failureMechanism.ClosingStructures.AddRange(new[] { - ClosingStructures = - { - structure1, - structure2 - } - }; + structure1, + structure2 + }, "some path"); var nodeData = new ClosingStructuresCalculationGroupContext(failureMechanism.CalculationsGroup, failureMechanism, @@ -1013,14 +1014,10 @@ var assessmentSection = mocks.Stub(); const string existingCalculationName = "Closing structure"; - ClosingStructure closingStructure = new TestClosingStructure(existingCalculationName); + ClosingStructure closingStructure = new TestClosingStructure(existingCalculationName, "id"); var failureMechanism = new ClosingStructuresFailureMechanism { - ClosingStructures = - { - closingStructure - }, CalculationsGroup = { Children = @@ -1032,6 +1029,10 @@ } } }; + failureMechanism.ClosingStructures.AddRange(new[] + { + closingStructure, + }, "some path"); var nodeData = new ClosingStructuresCalculationGroupContext(failureMechanism.CalculationsGroup, failureMechanism,