Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r8245c9add5586e4e544ab41195fb0af2b2a459e9 -rab20c4eb4ca81bd3845d50210d2bdb301177af6a --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 8245c9add5586e4e544ab41195fb0af2b2a459e9) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) @@ -41,6 +41,7 @@ using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.Structures; using Ringtoets.HydraRing.Data; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -146,7 +147,7 @@ var failureMechanism = new ClosingStructuresFailureMechanism(); var group = new CalculationGroup(); var childGroup = new CalculationGroup(); - var childCalculation = new ClosingStructuresCalculation(); + var childCalculation = new StructuresCalculation(); group.Children.Add(childGroup); group.Children.Add(calculationItemMock); @@ -377,7 +378,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -421,7 +422,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -430,7 +431,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionMock = mocks.Stub(); assessmentSectionMock.HydraulicBoundaryDatabase = null; @@ -475,7 +476,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -484,7 +485,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionMock = mocks.Stub(); assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); @@ -531,7 +532,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -548,7 +549,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionMock = mocks.Stub(); assessmentSectionMock.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; @@ -594,7 +595,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -632,7 +633,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -641,7 +642,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionStub = mocks.Stub(); @@ -679,7 +680,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -688,7 +689,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionStub = mocks.Stub(); var nodeData = new ClosingStructuresCalculationGroupContext(group, @@ -728,7 +729,7 @@ { Children = { - new ClosingStructuresCalculation() + new StructuresCalculation() } }; @@ -745,7 +746,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new ClosingStructuresCalculation()); + failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); var assessmentSectionStub = mocks.Stub(); var nodeData = new ClosingStructuresCalculationGroupContext(group, @@ -991,7 +992,7 @@ var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, assessmentSectionMock); - var calculation = new ClosingStructuresCalculation + var calculation = new StructuresCalculation { Name = "Nieuwe berekening" }; @@ -1019,7 +1020,7 @@ // Assert Assert.AreEqual(2, group.Children.Count); var newlyAddedItem = group.Children.Last(); - Assert.IsInstanceOf(newlyAddedItem); + Assert.IsInstanceOf>(newlyAddedItem); Assert.AreEqual("Nieuwe berekening (1)", newlyAddedItem.Name, "An item with the same name default name already exists, therefore '(1)' needs to be appended."); } @@ -1083,7 +1084,7 @@ new Point2D(0, 0) })); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); group.Children.Add(calculation); failureMechanism.SectionResults.First().Calculation = calculation; @@ -1109,7 +1110,7 @@ var parentNodeData = new ClosingStructuresCalculationGroupContext(parentGroup, failureMechanism, assessmentSectionMock); - var calculation = new ClosingStructuresCalculation(); + var calculation = new StructuresCalculation(); observerMock.Expect(o => o.UpdateObserver());