Index: Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/CalculationsState/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -r9fbcd1d8b777478ef5ba3e2896b4a1da860579a0 --- Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/CalculationsState/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/CalculationsState/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 9fbcd1d8b777478ef5ba3e2896b4a1da860579a0) @@ -434,30 +434,50 @@ public void ContextMenuStrip_ClickOnValidateAllItem_ValidateAllChildCalculations() { // Setup - var failureMechanism = new ClosingStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestClosingStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new ClosingStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + Children = + { + new TestClosingStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + }, + new TestClosingStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestClosingStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -r9fbcd1d8b777478ef5ba3e2896b4a1da860579a0 --- Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 9fbcd1d8b777478ef5ba3e2896b4a1da860579a0) @@ -991,30 +991,50 @@ // Setup var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); - var failureMechanism = new ClosingStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestClosingStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new ClosingStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + Children = + { + new TestClosingStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + }, + new TestClosingStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestClosingStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -r9fbcd1d8b777478ef5ba3e2896b4a1da860579a0 --- Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision 9fbcd1d8b777478ef5ba3e2896b4a1da860579a0) @@ -962,17 +962,24 @@ { // Given var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath }, Version = "random", - Locations = + HydraulicBoundaryDatabases = { - hydraulicBoundaryLocation + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } };