Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresContextTreeNodeInfoTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -reabf1a800431a23b06c8d81dfbf0f46a71bb659b --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresContextTreeNodeInfoTest.cs (.../ClosingStructuresContextTreeNodeInfoTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresContextTreeNodeInfoTest.cs (.../ClosingStructuresContextTreeNodeInfoTest.cs) (revision eabf1a800431a23b06c8d81dfbf0f46a71bb659b) @@ -127,13 +127,11 @@ var asssessmentSection = mocks.Stub(); mocks.ReplayAll(); - var failureMechanism = new ClosingStructuresFailureMechanism + var failureMechanism = new ClosingStructuresFailureMechanism(); + failureMechanism.ClosingStructures.AddRange(new[] { - ClosingStructures = - { - new TestClosingStructure() - } - }; + new TestClosingStructure() + }, "some path"); // Precondition CollectionAssert.IsNotEmpty(failureMechanism.ClosingStructures); @@ -156,16 +154,14 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - ClosingStructure closingStructure1 = new TestClosingStructure(); - ClosingStructure closingStructure2 = new TestClosingStructure(); - var failureMechanism = new ClosingStructuresFailureMechanism + ClosingStructure closingStructure1 = new TestClosingStructure("structure1"); + ClosingStructure closingStructure2 = new TestClosingStructure("structure2"); + var failureMechanism = new ClosingStructuresFailureMechanism(); + failureMechanism.ClosingStructures.AddRange(new[] { - ClosingStructures = - { - closingStructure1, - closingStructure2 - } - }; + closingStructure1, + closingStructure2 + }, "some path"); var closingStructuresContext = new ClosingStructuresContext(failureMechanism.ClosingStructures, failureMechanism, assessmentSection);