Index: Demo/Riskeer/src/Demo.Riskeer/Commands/AddNewDemoAssessmentSectionCommand.cs =================================================================== diff -u -r323a48b6534f255f047228da1be55aaabb1b2178 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Demo/Riskeer/src/Demo.Riskeer/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 323a48b6534f255f047228da1be55aaabb1b2178) +++ Demo/Riskeer/src/Demo.Riskeer/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -825,11 +825,11 @@ ObservableList hydraulicBoundaryLocations = demoAssessmentSection.HydraulicBoundaryDatabase.Locations; - demoAssessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + demoAssessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); SetHydraulicBoundaryLocationDesignWaterLevelOutputValues(demoAssessmentSection); SetHydraulicBoundaryLocationWaveHeightOutputValues(demoAssessmentSection); - demoAssessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + demoAssessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); SetGrassCoverErosionOutwardsHydraulicBoundaryLocationDesignWaterLevelOutputValues(demoAssessmentSection.GrassCoverErosionOutwards); SetGrassCoverErosionOutwardsHydraulicBoundaryLocationWaveHeightOutputValues(demoAssessmentSection.GrassCoverErosionOutwards); } Index: Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/GrassCoverErosionOutwards/src/Riskeer.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -160,19 +160,17 @@ } /// - /// Sets hydraulic boundary location calculations for . + /// Adds hydraulic boundary location calculations for . /// /// The hydraulic boundary locations to add calculations for. /// Thrown when is null. - public void SetHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) + public void AddHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) { if (hydraulicBoundaryLocations == null) { throw new ArgumentNullException(nameof(hydraulicBoundaryLocations)); } - ClearHydraulicBoundaryLocationCalculations(); - foreach (HydraulicBoundaryLocation hydraulicBoundaryLocation in hydraulicBoundaryLocations) { AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocation); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismTest.cs (.../GrassCoverErosionOutwardsFailureMechanismTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismTest.cs (.../GrassCoverErosionOutwardsFailureMechanismTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -140,55 +140,24 @@ } [Test] - public void SetHydraulicBoundaryLocationCalculations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() + public void AddHydraulicBoundaryLocationCalculations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() { // Setup var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); // Call - TestDelegate test = () => failureMechanism.SetHydraulicBoundaryLocationCalculations(null); + TestDelegate test = () => failureMechanism.AddHydraulicBoundaryLocationCalculations(null); // Assert string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("hydraulicBoundaryLocations", paramName); } - + [Test] - public void SetHydraulicBoundaryLocationCalculations_Always_PreviousCalculationsCleared() + public void AddHydraulicBoundaryLocationCalculations_MultipleHydraulicBoundaryLocations_SetsExpectedCalculations() { // Setup var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - - failureMechanism.SetHydraulicBoundaryLocationCalculations(new HydraulicBoundaryLocation[] - { - new TestHydraulicBoundaryLocation() - }); - - // Precondition - CollectionAssert.IsNotEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm); - CollectionAssert.IsNotEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm); - CollectionAssert.IsNotEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificLowerLimitNorm); - CollectionAssert.IsNotEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm); - CollectionAssert.IsNotEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificSignalingNorm); - CollectionAssert.IsNotEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificLowerLimitNorm); - - // Call - failureMechanism.SetHydraulicBoundaryLocationCalculations(Enumerable.Empty()); - - // Assert - CollectionAssert.IsEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm); - CollectionAssert.IsEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm); - CollectionAssert.IsEmpty(failureMechanism.WaterLevelCalculationsForMechanismSpecificLowerLimitNorm); - CollectionAssert.IsEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm); - CollectionAssert.IsEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificSignalingNorm); - CollectionAssert.IsEmpty(failureMechanism.WaveHeightCalculationsForMechanismSpecificLowerLimitNorm); - } - - [Test] - public void SetHydraulicBoundaryLocationCalculations_MultipleHydraulicBoundaryLocations_SetsExpectedCalculations() - { - // Setup - var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var hydraulicBoundaryLocation1 = new TestHydraulicBoundaryLocation(); var hydraulicBoundaryLocation2 = new TestHydraulicBoundaryLocation(); TestHydraulicBoundaryLocation[] hydraulicBoundaryLocations = @@ -198,7 +167,7 @@ }; // Call - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); // Assert AssertNumberOfHydraulicBoundaryLocationCalculations(failureMechanism, 2); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelperTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelperTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelperTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelperTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelperTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -129,7 +129,7 @@ }; var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); HydraulicBoundaryLocationCalculation calculation1 = failureMechanism.WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm.First(); HydraulicBoundaryLocationCalculation calculation2 = failureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm.First(); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Data.TestUtil/GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -65,7 +65,7 @@ IEnumerable hydraulicBoundaryLocations, bool setCalculationOutput = false) { - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); if (setCalculationOutput) { Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Forms.Test/GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest.cs =================================================================== diff -u -r56d072b8342f3e54ba89124ab918bd1529e257a3 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Forms.Test/GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest.cs (.../GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest.cs) (revision 56d072b8342f3e54ba89124ab918bd1529e257a3) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Forms.Test/GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest.cs (.../GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -332,7 +332,7 @@ new TestHydraulicBoundaryLocation() }; - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); } private static void SetHydraulicBoundaryLocationCalculationOutput(GrassCoverErosionOutwardsFailureMechanism failureMechanism) Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3c2bc9e86742edd2f2d7054810a27b5913a40755 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContextTreeNodeInfoTest.cs) (revision 3c2bc9e86742edd2f2d7054810a27b5913a40755) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContextTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -500,7 +500,7 @@ { Contribution = 5 }; - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r3c2bc9e86742edd2f2d7054810a27b5913a40755 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision 3c2bc9e86742edd2f2d7054810a27b5913a40755) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsFailureMechanismContextTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -492,7 +492,7 @@ var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var assessmentSection = new AssessmentSectionStub(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsHydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs =================================================================== diff -u -r3c2bc9e86742edd2f2d7054810a27b5913a40755 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsHydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 3c2bc9e86742edd2f2d7054810a27b5913a40755) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsHydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -205,7 +205,7 @@ var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var assessmentSection = new AssessmentSectionStub(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightCalculationsGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3c2bc9e86742edd2f2d7054810a27b5913a40755 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightCalculationsGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightCalculationsGroupContextTreeNodeInfoTest.cs) (revision 3c2bc9e86742edd2f2d7054810a27b5913a40755) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveHeightCalculationsGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveHeightCalculationsGroupContextTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -500,7 +500,7 @@ { Contribution = 5 }; - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsCalculationActivityFactoryTest.cs =================================================================== diff -u -r146edbbd3c7a6b51e263d3b3898a9b18d6f7b667 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsCalculationActivityFactoryTest.cs (.../GrassCoverErosionOutwardsCalculationActivityFactoryTest.cs) (revision 146edbbd3c7a6b51e263d3b3898a9b18d6f7b667) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsCalculationActivityFactoryTest.cs (.../GrassCoverErosionOutwardsCalculationActivityFactoryTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -606,7 +606,7 @@ }; assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); // Call IEnumerable activities = @@ -729,7 +729,7 @@ }; assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); // Call IEnumerable activities = Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsDataSynchronizationServiceTest.cs =================================================================== diff -u -ra7618b34e7b11ed8b96b9dc2990bc77fea82a656 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsDataSynchronizationServiceTest.cs (.../GrassCoverErosionOutwardsDataSynchronizationServiceTest.cs) (revision a7618b34e7b11ed8b96b9dc2990bc77fea82a656) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Service.Test/GrassCoverErosionOutwardsDataSynchronizationServiceTest.cs (.../GrassCoverErosionOutwardsDataSynchronizationServiceTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -228,7 +228,7 @@ }; var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + failureMechanism.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); failureMechanism.WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm.First().Output = new TestHydraulicBoundaryLocationCalculationOutput(); failureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm.First().Output = new TestHydraulicBoundaryLocationCalculationOutput(); Index: Riskeer/Integration/src/Riskeer.Integration.Data/AssessmentSection.cs =================================================================== diff -u -r8665097dfed48878ff9971240820aa242e02b55d -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/src/Riskeer.Integration.Data/AssessmentSection.cs (.../AssessmentSection.cs) (revision 8665097dfed48878ff9971240820aa242e02b55d) +++ Riskeer/Integration/src/Riskeer.Integration.Data/AssessmentSection.cs (.../AssessmentSection.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -571,19 +571,17 @@ public BackgroundData BackgroundData { get; } /// - /// Sets hydraulic boundary location calculations for . + /// Adds hydraulic boundary location calculations for . /// /// The hydraulic boundary locations to add calculations for. /// Thrown when is null. - public void SetHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) + public void AddHydraulicBoundaryLocationCalculations(IEnumerable hydraulicBoundaryLocations) { if (hydraulicBoundaryLocations == null) { throw new ArgumentNullException(nameof(hydraulicBoundaryLocations)); } - ClearHydraulicBoundaryLocationCalculations(); - foreach (HydraulicBoundaryLocation hydraulicBoundaryLocation in hydraulicBoundaryLocations) { AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocation); Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/Handlers/HydraulicBoundaryDatabaseUpdateHandler.cs =================================================================== diff -u -r7aa40a2aaf78e4491dab935e8e9c9b36fcbb1b6d -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/src/Riskeer.Integration.Plugin/Handlers/HydraulicBoundaryDatabaseUpdateHandler.cs (.../HydraulicBoundaryDatabaseUpdateHandler.cs) (revision 7aa40a2aaf78e4491dab935e8e9c9b36fcbb1b6d) +++ Riskeer/Integration/src/Riskeer.Integration.Plugin/Handlers/HydraulicBoundaryDatabaseUpdateHandler.cs (.../HydraulicBoundaryDatabaseUpdateHandler.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -146,8 +146,8 @@ readHydraulicLocationConfigurationDatabase.LocationIdMappings, excludedLocationIds.ToArray()); - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); duneLocationsReplacementHandler.Replace(hydraulicBoundaryDatabase.Locations); Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/Merge/AssessmentSectionMergeHandler.cs =================================================================== diff -u -r0fbedc134c37fe66e31005d87b649ed483d28b3c -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/src/Riskeer.Integration.Plugin/Merge/AssessmentSectionMergeHandler.cs (.../AssessmentSectionMergeHandler.cs) (revision 0fbedc134c37fe66e31005d87b649ed483d28b3c) +++ Riskeer/Integration/src/Riskeer.Integration.Plugin/Merge/AssessmentSectionMergeHandler.cs (.../AssessmentSectionMergeHandler.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -371,7 +371,7 @@ HydraulicBoundaryLocationCalculation[] oldWaveHeightForMechanismSpecificFactorizedSignalingNorm = targetFailureMechanism.WaveHeightCalculationsForMechanismSpecificFactorizedSignalingNorm.ToArray(); HydraulicBoundaryLocationCalculation[] oldWaveHeightForMechanismSpecificSignalingNorm = targetFailureMechanism.WaveHeightCalculationsForMechanismSpecificSignalingNorm.ToArray(); HydraulicBoundaryLocationCalculation[] oldWaveHeightForMechanismSpecificLowerLimitNorm = targetFailureMechanism.WaveHeightCalculationsForMechanismSpecificLowerLimitNorm.ToArray(); - targetFailureMechanism.SetHydraulicBoundaryLocationCalculations(locations); + targetFailureMechanism.AddHydraulicBoundaryLocationCalculations(locations); ReplaceHydraulicBoundaryLocationCalculationData(oldWaterLevelForMechanismSpecificFactorizedSignalingNorm, targetFailureMechanism.WaterLevelCalculationsForMechanismSpecificFactorizedSignalingNorm); ReplaceHydraulicBoundaryLocationCalculationData(oldWaterLevelForMechanismSpecificSignalingNorm, targetFailureMechanism.WaterLevelCalculationsForMechanismSpecificSignalingNorm); Index: Riskeer/Integration/test/Riskeer.Integration.Data.Test/AssessmentSectionTest.cs =================================================================== diff -u -r8665097dfed48878ff9971240820aa242e02b55d -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision 8665097dfed48878ff9971240820aa242e02b55d) +++ Riskeer/Integration/test/Riskeer.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -358,62 +358,26 @@ } [Test] - public void SetHydraulicBoundaryLocationCalculations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() + public void AddHydraulicBoundaryLocationCalculations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() { // Setup var random = new Random(21); var assessmentSection = new AssessmentSection(random.NextEnumValue()); // Call - TestDelegate test = () => assessmentSection.SetHydraulicBoundaryLocationCalculations(null); + TestDelegate test = () => assessmentSection.AddHydraulicBoundaryLocationCalculations(null); // Assert string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("hydraulicBoundaryLocations", paramName); } [Test] - public void SetHydraulicBoundaryLocationCalculations_Always_PreviousCalculationsCleared() + public void AddHydraulicBoundaryLocationCalculations_MultipleHydraulicBoundaryLocations_SetsExpectedCalculations() { // Setup var random = new Random(21); var assessmentSection = new AssessmentSection(random.NextEnumValue()); - - assessmentSection.SetHydraulicBoundaryLocationCalculations(new HydraulicBoundaryLocation[] - { - new TestHydraulicBoundaryLocation() - }); - - // Precondition - CollectionAssert.IsNotEmpty(assessmentSection.WaterLevelCalculationsForFactorizedSignalingNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaterLevelCalculationsForSignalingNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaterLevelCalculationsForLowerLimitNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaterLevelCalculationsForFactorizedLowerLimitNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaveHeightCalculationsForFactorizedSignalingNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaveHeightCalculationsForSignalingNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaveHeightCalculationsForLowerLimitNorm); - CollectionAssert.IsNotEmpty(assessmentSection.WaveHeightCalculationsForFactorizedLowerLimitNorm); - - // Call - assessmentSection.SetHydraulicBoundaryLocationCalculations(Enumerable.Empty()); - - // Assert - CollectionAssert.IsEmpty(assessmentSection.WaterLevelCalculationsForFactorizedSignalingNorm); - CollectionAssert.IsEmpty(assessmentSection.WaterLevelCalculationsForSignalingNorm); - CollectionAssert.IsEmpty(assessmentSection.WaterLevelCalculationsForLowerLimitNorm); - CollectionAssert.IsEmpty(assessmentSection.WaterLevelCalculationsForFactorizedLowerLimitNorm); - CollectionAssert.IsEmpty(assessmentSection.WaveHeightCalculationsForFactorizedSignalingNorm); - CollectionAssert.IsEmpty(assessmentSection.WaveHeightCalculationsForSignalingNorm); - CollectionAssert.IsEmpty(assessmentSection.WaveHeightCalculationsForLowerLimitNorm); - CollectionAssert.IsEmpty(assessmentSection.WaveHeightCalculationsForFactorizedLowerLimitNorm); - } - - [Test] - public void SetHydraulicBoundaryLocationCalculations_MultipleHydraulicBoundaryLocations_SetsExpectedCalculations() - { - // Setup - var random = new Random(21); - var assessmentSection = new AssessmentSection(random.NextEnumValue()); var hydraulicBoundaryLocation1 = new TestHydraulicBoundaryLocation(); var hydraulicBoundaryLocation2 = new TestHydraulicBoundaryLocation(); TestHydraulicBoundaryLocation[] hydraulicBoundaryLocations = @@ -423,7 +387,7 @@ }; // Call - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); // Assert AssertNumberOfHydraulicBoundaryLocationCalculations(assessmentSection, 2); Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/NormPropertiesIntegrationTest.cs =================================================================== diff -u -r56d072b8342f3e54ba89124ab918bd1529e257a3 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/NormPropertiesIntegrationTest.cs (.../NormPropertiesIntegrationTest.cs) (revision 56d072b8342f3e54ba89124ab918bd1529e257a3) +++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/NormPropertiesIntegrationTest.cs (.../NormPropertiesIntegrationTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -73,14 +73,14 @@ } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation1, hydraulicBoundaryLocation2 }); SetOutputToHydraulicBoundaryLocationCalculations(assessmentSection, hydraulicBoundaryLocation1, random); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation1, hydraulicBoundaryLocation2 @@ -169,13 +169,13 @@ } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); SetOutputToHydraulicBoundaryLocationCalculations(assessmentSection, hydraulicBoundaryLocation, random); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -256,12 +256,12 @@ } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs =================================================================== diff -u -r528b27af049364e9311a2bef5aeea3aeaa2e9725 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs (.../AssemblyResultPerSectionMapViewTest.cs) (revision 528b27af049364e9311a2bef5aeea3aeaa2e9725) +++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Views/AssemblyResultPerSectionMapViewTest.cs (.../AssemblyResultPerSectionMapViewTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -141,7 +141,7 @@ var random = new Random(21); AssessmentSection assessmentSection = CreateAssessmentSectionWithReferenceLine(); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new HydraulicBoundaryLocation(1, "test", 1.0, 2.0) }); @@ -191,7 +191,7 @@ // Given var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, "test1", 1.0, 2.0); AssessmentSection assessmentSection = CreateAssessmentSectionWithReferenceLine(); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -226,7 +226,7 @@ { // Given AssessmentSection assessmentSection = CreateAssessmentSectionWithReferenceLine(); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new HydraulicBoundaryLocation(1, "test1", 1.0, 2.0) }); @@ -246,7 +246,7 @@ MapDataTestHelper.AssertHydraulicBoundaryLocationsMapData(assessmentSection, hydraulicBoundaryLocationsMapData); // When - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new HydraulicBoundaryLocation(2, "test2", 2.0, 3.0) }); Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Handlers/HydraulicBoundaryDatabaseUpdateHandlerTest.cs =================================================================== diff -u -r56d072b8342f3e54ba89124ab918bd1529e257a3 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Handlers/HydraulicBoundaryDatabaseUpdateHandlerTest.cs (.../HydraulicBoundaryDatabaseUpdateHandlerTest.cs) (revision 56d072b8342f3e54ba89124ab918bd1529e257a3) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Handlers/HydraulicBoundaryDatabaseUpdateHandlerTest.cs (.../HydraulicBoundaryDatabaseUpdateHandlerTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -404,8 +404,8 @@ new TestHydraulicBoundaryLocation("old location 3") } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); HydraulicBoundaryLocation[] locations = hydraulicBoundaryDatabase.Locations.ToArray(); @@ -447,8 +447,8 @@ } }; HydraulicBoundaryDatabaseTestHelper.SetHydraulicBoundaryLocationConfigurationSettings(hydraulicBoundaryDatabase); - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); HydraulicBoundaryLocation[] locations = hydraulicBoundaryDatabase.Locations.ToArray(); @@ -494,8 +494,8 @@ mocks.ReplayAll(); AssessmentSection assessmentSection = CreateAssessmentSection(); - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryDatabase.Locations); var handler = new HydraulicBoundaryDatabaseUpdateHandler(assessmentSection, duneLocationsReplacementHandler); Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Merge/AssessmentSectionMergeHandlerTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Merge/AssessmentSectionMergeHandlerTest.cs (.../AssessmentSectionMergeHandlerTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/Merge/AssessmentSectionMergeHandlerTest.cs (.../AssessmentSectionMergeHandlerTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -543,7 +543,7 @@ { var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); assessmentSection.HydraulicBoundaryDatabase.Locations.AddRange(locations); - assessmentSection.SetHydraulicBoundaryLocationCalculations(locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(locations); return assessmentSection; } Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs =================================================================== diff -u -r85b293f9f642593fa612bcc3ccc4999959b6f3c6 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs (.../AssessmentSectionTreeNodeInfoTest.cs) (revision 85b293f9f642593fa612bcc3ccc4999959b6f3c6) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/AssessmentSectionTreeNodeInfoTest.cs (.../AssessmentSectionTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -520,8 +520,8 @@ { hydraulicBoundaryLocation }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); AddGrassCoverErosionInwardsCalculation(assessmentSection, hydraulicBoundaryLocation); AddPipingCalculationScenario(assessmentSection, hydraulicBoundaryLocation); Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs =================================================================== diff -u -r56a36609f74a67f2ed144bdf422274ed61d81651 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision 56a36609f74a67f2ed144bdf422274ed61d81651) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/TreeNodeInfos/HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs (.../HydraulicBoundaryDatabaseContextTreeNodeInfoTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -341,7 +341,7 @@ var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation("locationName"); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -393,7 +393,7 @@ }; var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation("locationName"); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -440,7 +440,7 @@ // Setup var random = new Random(21); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new TestHydraulicBoundaryLocation() }); @@ -488,7 +488,7 @@ { // Setup var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new TestHydraulicBoundaryLocation() }); @@ -544,7 +544,7 @@ }; HydraulicBoundaryDatabaseTestHelper.SetHydraulicBoundaryLocationConfigurationSettings(assessmentSection.HydraulicBoundaryDatabase); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -776,7 +776,7 @@ { var random = new Random(21); var assessmentSection = new AssessmentSection(random.NextEnumValue()); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { new TestHydraulicBoundaryLocation(), new TestHydraulicBoundaryLocation() Index: Riskeer/Integration/test/Riskeer.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs =================================================================== diff -u -r465b8f619142481bb26d78f4bf793be122483d57 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs (.../AssessmentSectionCalculationActivityFactoryTest.cs) (revision 465b8f619142481bb26d78f4bf793be122483d57) +++ Riskeer/Integration/test/Riskeer.Integration.Service.Test/AssessmentSectionCalculationActivityFactoryTest.cs (.../AssessmentSectionCalculationActivityFactoryTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -87,8 +87,8 @@ { hydraulicBoundaryLocation }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); AddGrassCoverErosionInwardsCalculation(assessmentSection, hydraulicBoundaryLocation); AddPipingCalculationScenario(assessmentSection, hydraulicBoundaryLocation); Index: Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs =================================================================== diff -u -r10e6517d97fff69cc24cf91bb61f493b42acf353 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs (.../RiskeerDataSynchronizationServiceTest.cs) (revision 10e6517d97fff69cc24cf91bb61f493b42acf353) +++ Riskeer/Integration/test/Riskeer.Integration.Service.Test/RiskeerDataSynchronizationServiceTest.cs (.../RiskeerDataSynchronizationServiceTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -276,14 +276,14 @@ duneLocation2 }); - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation1, hydraulicBoundaryLocation2 }); GrassCoverErosionOutwardsFailureMechanism grassCoverErosionOutwardsFailureMechanism = assessmentSection.GrassCoverErosionOutwards; - grassCoverErosionOutwardsFailureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + grassCoverErosionOutwardsFailureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation1, hydraulicBoundaryLocation2 @@ -1759,7 +1759,7 @@ private static void ConfigureGrassCoverErosionOutwardsFailureMechanism(GrassCoverErosionOutwardsFailureMechanism failureMechanism, bool hasOutput) { - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { new TestHydraulicBoundaryLocation() }); Index: Riskeer/Integration/test/Riskeer.Integration.TestUtil/TestDataGenerator.cs =================================================================== diff -u -r356423bfc298b67f53cf5b7c78765e9f96fa9295 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Integration/test/Riskeer.Integration.TestUtil/TestDataGenerator.cs (.../TestDataGenerator.cs) (revision 356423bfc298b67f53cf5b7c78765e9f96fa9295) +++ Riskeer/Integration/test/Riskeer.Integration.TestUtil/TestDataGenerator.cs (.../TestDataGenerator.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -80,7 +80,7 @@ } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] + assessmentSection.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); @@ -790,7 +790,7 @@ HydraulicBoundaryLocation hydraulicBoundaryLocation, Random random) { - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/Storage/src/Riskeer.Storage.Core/Read/AssessmentSectionEntityReadExtensions.cs =================================================================== diff -u -r6d0d122d4f56b79e5c0157702d85463588496b41 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Storage/src/Riskeer.Storage.Core/Read/AssessmentSectionEntityReadExtensions.cs (.../AssessmentSectionEntityReadExtensions.cs) (revision 6d0d122d4f56b79e5c0157702d85463588496b41) +++ Riskeer/Storage/src/Riskeer.Storage.Core/Read/AssessmentSectionEntityReadExtensions.cs (.../AssessmentSectionEntityReadExtensions.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -127,8 +127,8 @@ .Select(hle => hle.Read(collector)) .ToArray(); hydraulicBoundaryDatabase.Locations.AddRange(readHydraulicBoundaryLocations); - assessmentSection.SetHydraulicBoundaryLocationCalculations(readHydraulicBoundaryLocations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(readHydraulicBoundaryLocations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(readHydraulicBoundaryLocations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(readHydraulicBoundaryLocations); entity.ReadHydraulicBoundaryLocationCalculations(assessmentSection, collector); } Index: Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/AssessmentSectionCreateExtensionsTest.cs =================================================================== diff -u -r6d0d122d4f56b79e5c0157702d85463588496b41 -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/AssessmentSectionCreateExtensionsTest.cs (.../AssessmentSectionCreateExtensionsTest.cs) (revision 6d0d122d4f56b79e5c0157702d85463588496b41) +++ Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/AssessmentSectionCreateExtensionsTest.cs (.../AssessmentSectionCreateExtensionsTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -185,7 +185,7 @@ { // Setup var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); - assessmentSection.SetHydraulicBoundaryLocationCalculations(assessmentSection.HydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(assessmentSection.HydraulicBoundaryDatabase.Locations); var registry = new PersistenceRegistry(); @@ -217,7 +217,7 @@ } } }; - assessmentSection.SetHydraulicBoundaryLocationCalculations(assessmentSection.HydraulicBoundaryDatabase.Locations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(assessmentSection.HydraulicBoundaryDatabase.Locations); SetHydraulicBoundaryLocationCalculationInputsOfAssessmentSection(assessmentSection); var registry = new PersistenceRegistry(); Index: Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismCreateExtensionsTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismCreateExtensionsTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/Storage/test/Riskeer.Storage.Core.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismCreateExtensionsTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -261,7 +261,7 @@ // Setup var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, "A", 0, 0); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailureMechanismEntityReadExtensionsTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailureMechanismEntityReadExtensionsTest.cs (.../FailureMechanismEntityReadExtensionsTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/Storage/test/Riskeer.Storage.Core.Test/Read/FailureMechanismEntityReadExtensionsTest.cs (.../FailureMechanismEntityReadExtensionsTest.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -1502,7 +1502,7 @@ collector.Read(hydraulicLocationEntity, hydraulicBoundaryLocation); var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - failureMechanism.SetHydraulicBoundaryLocationCalculations(new[] + failureMechanism.AddHydraulicBoundaryLocationCalculations(new[] { hydraulicBoundaryLocation }); Index: Riskeer/Storage/test/Riskeer.Storage.Core.TestUtil/RiskeerProjectTestHelper.cs =================================================================== diff -u -rb01d54e7545de1ce27f2658757d500bfc36d526d -rfe71ea7dedd124845b91ad5a3d82113935d04cb8 --- Riskeer/Storage/test/Riskeer.Storage.Core.TestUtil/RiskeerProjectTestHelper.cs (.../RiskeerProjectTestHelper.cs) (revision b01d54e7545de1ce27f2658757d500bfc36d526d) +++ Riskeer/Storage/test/Riskeer.Storage.Core.TestUtil/RiskeerProjectTestHelper.cs (.../RiskeerProjectTestHelper.cs) (revision fe71ea7dedd124845b91ad5a3d82113935d04cb8) @@ -107,8 +107,8 @@ ObservableList hydraulicBoundaryLocations = assessmentSection.HydraulicBoundaryDatabase.Locations; hydraulicBoundaryLocations.AddRange(GetHydraulicBoundaryLocations()); - assessmentSection.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); - assessmentSection.GrassCoverErosionOutwards.SetHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); + assessmentSection.GrassCoverErosionOutwards.AddHydraulicBoundaryLocationCalculations(hydraulicBoundaryLocations); ConfigureHydraulicBoundaryLocationCalculations(assessmentSection); MacroStabilityInwardsFailureMechanism macroStabilityInwardsFailureMechanism = assessmentSection.MacroStabilityInwards;