Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r8245c9add5586e4e544ab41195fb0af2b2a459e9 -rab20c4eb4ca81bd3845d50210d2bdb301177af6a --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 8245c9add5586e4e544ab41195fb0af2b2a459e9) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) @@ -44,6 +44,7 @@ using Ringtoets.Common.Data.Contribution; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Data.Probability; +using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.HydraRing.Calculation.Calculator.Factory; using Ringtoets.HydraRing.Calculation.TestUtil.Calculator; @@ -133,7 +134,7 @@ mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var calculationContext = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); // Call @@ -160,7 +161,7 @@ mocks.ReplayAll(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var calculation = new ClosingStructuresCalculation + var calculation = new StructuresCalculation { Output = new TestClosingStructuresOutput() }; @@ -190,7 +191,7 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); var assessmentSectionMock = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); var menuBuilderMock = mocks.StrictMock(); @@ -228,7 +229,7 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); var assessmentSectionMock = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -273,7 +274,7 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); var assessmentSectionMock = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); @@ -316,7 +317,7 @@ var assessmentSectionMock = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); using (var treeViewControl = new TreeViewControl()) @@ -359,7 +360,7 @@ var assessmentSectionMock = mocks.Stub(); assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); using (var treeViewControl = new TreeViewControl()) @@ -412,7 +413,7 @@ var assessmentSectionMock = mocks.Stub(); assessmentSectionMock.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionMock); using (var treeViewControl = new TreeViewControl()) @@ -446,7 +447,7 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); var assessmentSectionStub = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); @@ -483,7 +484,7 @@ var assessmentSectionStub = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); using (var treeViewControl = new TreeViewControl()) @@ -519,7 +520,7 @@ var assessmentSectionStub = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); using (var treeViewControl = new TreeViewControl()) @@ -566,7 +567,7 @@ var assessmentSectionStub = mocks.Stub(); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); using (var treeViewControl = new TreeViewControl()) @@ -745,7 +746,7 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var elementToBeRemoved = new ClosingStructuresCalculation(); + var elementToBeRemoved = new StructuresCalculation(); var observerMock = mocks.StrictMock(); var assessmentSectionMock = mocks.Stub(); var calculationContext = new ClosingStructuresCalculationContext(elementToBeRemoved, @@ -760,7 +761,7 @@ mocks.ReplayAll(); group.Children.Add(elementToBeRemoved); - group.Children.Add(new ClosingStructuresCalculation()); + group.Children.Add(new StructuresCalculation()); group.Attach(observerMock); // Precondition @@ -781,7 +782,7 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var elementToBeRemoved = new ClosingStructuresCalculation(); + var elementToBeRemoved = new StructuresCalculation(); var assessmentSectionStub = mocks.Stub(); var calculationContext = new ClosingStructuresCalculationContext(elementToBeRemoved, failureMechanism,