Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rcb903e8cdb76e9733979fe508ee097107c022a28 -rea180de6e9f5ba1108b4ff3cf7bb7e57de72a37a --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision cb903e8cdb76e9733979fe508ee097107c022a28) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision ea180de6e9f5ba1108b4ff3cf7bb7e57de72a37a) @@ -127,7 +127,7 @@ var failureMechanism = new HeightStructuresFailureMechanism(); var group = new CalculationGroup(); var childGroup = new CalculationGroup(); - var childCalculation = new HeightStructuresCalculation(failureMechanism.GeneralInput); + var childCalculation = new HeightStructuresCalculation(); group.Children.Add(childGroup); group.Children.Add(calculationItemMock); @@ -345,7 +345,7 @@ { Children = { - new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + new HeightStructuresCalculation() } }; @@ -386,7 +386,7 @@ { Children = { - new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + new HeightStructuresCalculation() } }; @@ -395,7 +395,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation(new GeneralHeightStructuresInput())); + failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation()); var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Stub(asm => asm.HydraulicBoundaryDatabase).Return(null); @@ -438,7 +438,7 @@ { Children = { - new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + new HeightStructuresCalculation() } }; @@ -447,7 +447,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation(new GeneralHeightStructuresInput())); + failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation()); var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Stub(asm => asm.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase()); @@ -491,7 +491,7 @@ { Children = { - new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + new HeightStructuresCalculation() } }; @@ -508,7 +508,7 @@ { new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation(new GeneralHeightStructuresInput())); + failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation()); var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Stub(asm => asm.HydraulicBoundaryDatabase).Return(hydraulicBoundaryDatabase); @@ -556,7 +556,7 @@ new Point2D(0, 0) })); - failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation { Name = "A", InputParameters = @@ -565,7 +565,7 @@ } }); - failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation(new GeneralHeightStructuresInput()) + failureMechanism.CalculationsGroup.Children.Add(new HeightStructuresCalculation { Name = "B", InputParameters = @@ -670,7 +670,7 @@ var nodeData = new HeightStructuresCalculationGroupContext(group, failureMechanism, assessmentSectionMock); - var calculation = new HeightStructuresCalculation(failureMechanism.GeneralInput) + var calculation = new HeightStructuresCalculation { Name = "Nieuwe berekening" }; @@ -752,7 +752,7 @@ var parentNodeData = new HeightStructuresCalculationGroupContext(parentGroup, failureMechanism, assessmentSectionMock); - var calculation = new HeightStructuresCalculation(failureMechanism.GeneralInput); + var calculation = new HeightStructuresCalculation(); observerMock.Expect(o => o.UpdateObserver());