Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/CalculationsState/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/CalculationsState/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/CalculationsState/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -475,30 +475,50 @@ public void ContextMenuStrip_ClickOnValidateAllItem_ValidateAllChildCalculations() { // Setup - var failureMechanism = new HeightStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestHeightStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new HeightStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + Children = + { + new TestHeightStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + }, + new TestHeightStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestHeightStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -1044,30 +1044,50 @@ // Setup var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); - var failureMechanism = new HeightStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestHeightStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new HeightStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() + Children = + { + new TestHeightStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + }, + new TestHeightStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestHeightStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation() - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -1036,17 +1036,24 @@ var observer = mocks.StrictMock(); var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath }, Version = "random", - Locations = + HydraulicBoundaryDatabases = { - hydraulicBoundaryLocation + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -1500,34 +1500,54 @@ // Setup var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); - var failureMechanism = new StabilityPointStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestStabilityPointStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new StabilityPointStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - InflowModelType = StabilityPointStructureInflowModelType.LowSill, - LoadSchematizationType = LoadSchematizationType.Linear + Children = + { + new TestStabilityPointStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation, + InflowModelType = StabilityPointStructureInflowModelType.LowSill, + LoadSchematizationType = LoadSchematizationType.Linear + } + }, + new TestStabilityPointStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation, + InflowModelType = StabilityPointStructureInflowModelType.LowSill, + LoadSchematizationType = LoadSchematizationType.Linear + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestStabilityPointStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - InflowModelType = StabilityPointStructureInflowModelType.LowSill, - LoadSchematizationType = LoadSchematizationType.Linear - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationScenarioContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationScenarioContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -948,17 +948,24 @@ var observer = mocks.StrictMock(); var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath }, Version = "random", - Locations = + HydraulicBoundaryDatabases = { - hydraulicBoundaryLocation + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } }; Index: Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationsContextTreeNodeInfoTest.cs =================================================================== diff -u -r42f4ef3a273cb41a5dd780d8e51c80d910db4ff7 -rd3db926a2a6ef086de15a13fc1beeb6e5750f270 --- Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationsContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationsContextTreeNodeInfoTest.cs) (revision 42f4ef3a273cb41a5dd780d8e51c80d910db4ff7) +++ Riskeer/StabilityPointStructures/test/Riskeer.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationsContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationsContextTreeNodeInfoTest.cs) (revision d3db926a2a6ef086de15a13fc1beeb6e5750f270) @@ -469,34 +469,54 @@ public void ContextMenuStrip_ClickOnValidateAllItem_ValidateAllChildCalculations() { // Setup - var failureMechanism = new StabilityPointStructuresFailureMechanism(); - failureMechanism.CalculationsGroup.Children.Add(new TestStabilityPointStructuresCalculationScenario + var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); + + var failureMechanism = new StabilityPointStructuresFailureMechanism { - Name = "A", - InputParameters = + CalculationsGroup = { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - InflowModelType = StabilityPointStructureInflowModelType.LowSill, - LoadSchematizationType = LoadSchematizationType.Linear + Children = + { + new TestStabilityPointStructuresCalculationScenario + { + Name = "A", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation, + InflowModelType = StabilityPointStructureInflowModelType.LowSill, + LoadSchematizationType = LoadSchematizationType.Linear + } + }, + new TestStabilityPointStructuresCalculationScenario + { + Name = "B", + InputParameters = + { + HydraulicBoundaryLocation = hydraulicBoundaryLocation, + InflowModelType = StabilityPointStructureInflowModelType.LowSill, + LoadSchematizationType = LoadSchematizationType.Linear + } + } + } } - }); - failureMechanism.CalculationsGroup.Children.Add(new TestStabilityPointStructuresCalculationScenario - { - Name = "B", - InputParameters = - { - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - InflowModelType = StabilityPointStructureInflowModelType.LowSill, - LoadSchematizationType = LoadSchematizationType.Linear - } - }); + }; var hydraulicBoundaryData = new HydraulicBoundaryData { - FilePath = validHrdFilePath, HydraulicLocationConfigurationDatabase = { FilePath = validHlcdFilePath + }, + HydraulicBoundaryDatabases = + { + new HydraulicBoundaryDatabase + { + FilePath = validHrdFilePath, + Locations = + { + hydraulicBoundaryLocation + } + } } };