Index: Riskeer/Integration/src/Riskeer.Integration.Service/RiskeerDataSynchronizationService.cs =================================================================== diff -u -r47fed94b289fbce64ac022db30d9a80273d496ff -r07689bc00e324cdd50fc2cceba764126fc2e80fe --- Riskeer/Integration/src/Riskeer.Integration.Service/RiskeerDataSynchronizationService.cs (.../RiskeerDataSynchronizationService.cs) (revision 47fed94b289fbce64ac022db30d9a80273d496ff) +++ Riskeer/Integration/src/Riskeer.Integration.Service/RiskeerDataSynchronizationService.cs (.../RiskeerDataSynchronizationService.cs) (revision 07689bc00e324cdd50fc2cceba764126fc2e80fe) @@ -122,7 +122,7 @@ stabilityPointStructuresFailureMechanism, hydraulicBoundaryLocations)); break; case MacroStabilityInwardsFailureMechanism macroStabilityInwardsFailureMechanism: - changedObservables.AddRange(MacroStabilityInwardsDataSynchronizationService.ClearAllCalculationOutputAndHydraulicBoundaryLocations( + changedObservables.AddRange(MacroStabilityInwardsDataSynchronizationService.ClearCalculationOutputAndHydraulicBoundaryLocations( macroStabilityInwardsFailureMechanism, hydraulicBoundaryLocations)); break; } Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Service/MacroStabilityInwardsDataSynchronizationService.cs =================================================================== diff -u -reabeca6ae27b831af6a7969be3a966369699174b -r07689bc00e324cdd50fc2cceba764126fc2e80fe --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Service/MacroStabilityInwardsDataSynchronizationService.cs (.../MacroStabilityInwardsDataSynchronizationService.cs) (revision eabeca6ae27b831af6a7969be3a966369699174b) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Service/MacroStabilityInwardsDataSynchronizationService.cs (.../MacroStabilityInwardsDataSynchronizationService.cs) (revision 07689bc00e324cdd50fc2cceba764126fc2e80fe) @@ -62,7 +62,7 @@ /// /// Clears: /// - /// The for all the calculations in the + /// The for the calculations in the /// that uses an from ; /// The output for all these calculations in the , /// except where is true. @@ -72,7 +72,7 @@ /// The hydraulic boundary locations to clear for. /// An of objects which are affected by removing data. /// Thrown when any parameter is null. - public static IEnumerable ClearAllCalculationOutputAndHydraulicBoundaryLocations( + public static IEnumerable ClearCalculationOutputAndHydraulicBoundaryLocations( MacroStabilityInwardsFailureMechanism failureMechanism, IEnumerable hydraulicBoundaryLocations) { @@ -91,7 +91,7 @@ && hydraulicBoundaryLocations.Contains(c.InputParameters.HydraulicBoundaryLocation)) .SelectMany(RiskeerCommonDataSynchronizationService.ClearCalculationOutput) .ToList(); - + foreach (MacroStabilityInwardsCalculation calculation in failureMechanism.Calculations.Cast() .Where(c => hydraulicBoundaryLocations.Contains( c.InputParameters.HydraulicBoundaryLocation))) Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs =================================================================== diff -u -reabeca6ae27b831af6a7969be3a966369699174b -r07689bc00e324cdd50fc2cceba764126fc2e80fe --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs (.../MacroStabilityInwardsDataSynchronizationServiceTest.cs) (revision eabeca6ae27b831af6a7969be3a966369699174b) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs (.../MacroStabilityInwardsDataSynchronizationServiceTest.cs) (revision 07689bc00e324cdd50fc2cceba764126fc2e80fe) @@ -92,10 +92,10 @@ } [Test] - public void ClearAllCalculationOutputAndHydraulicBoundaryLocations_FailureMechanismNull_ThrowsArgumentNullException() + public void ClearCalculationOutputAndHydraulicBoundaryLocations_FailureMechanismNull_ThrowsArgumentNullException() { // Call - void Call() => MacroStabilityInwardsDataSynchronizationService.ClearAllCalculationOutputAndHydraulicBoundaryLocations( + void Call() => MacroStabilityInwardsDataSynchronizationService.ClearCalculationOutputAndHydraulicBoundaryLocations( null, Enumerable.Empty()); // Assert @@ -104,10 +104,10 @@ } [Test] - public void ClearAllCalculationOutputAndHydraulicBoundaryLocations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() + public void ClearCalculationOutputAndHydraulicBoundaryLocations_HydraulicBoundaryLocationsNull_ThrowsArgumentNullException() { // Call - void Call() => MacroStabilityInwardsDataSynchronizationService.ClearAllCalculationOutputAndHydraulicBoundaryLocations( + void Call() => MacroStabilityInwardsDataSynchronizationService.ClearCalculationOutputAndHydraulicBoundaryLocations( new MacroStabilityInwardsFailureMechanism(), null); // Assert @@ -116,7 +116,7 @@ } [Test] - public void ClearAllCalculationOutputAndHydraulicBoundaryLocations_WithVariousCalculations_ClearsHydraulicBoundaryLocationAndCalculationsAndReturnsAffectedObjects() + public void ClearCalculationOutputAndHydraulicBoundaryLocations_WithVariousCalculations_ClearsHydraulicBoundaryLocationAndCalculationsAndReturnsAffectedObjects() { // Setup var failureMechanism = new MacroStabilityInwardsFailureMechanism(); @@ -157,7 +157,7 @@ .Where(i => i.HydraulicBoundaryLocation == hydraulicBoundaryLocation)); // Call - IEnumerable affectedItems = MacroStabilityInwardsDataSynchronizationService.ClearAllCalculationOutputAndHydraulicBoundaryLocations( + IEnumerable affectedItems = MacroStabilityInwardsDataSynchronizationService.ClearCalculationOutputAndHydraulicBoundaryLocations( failureMechanism, new[] { hydraulicBoundaryLocation Index: Riskeer/Piping/src/Riskeer.Piping.Service/PipingDataSynchronizationService.cs =================================================================== diff -u -r47fed94b289fbce64ac022db30d9a80273d496ff -r07689bc00e324cdd50fc2cceba764126fc2e80fe --- Riskeer/Piping/src/Riskeer.Piping.Service/PipingDataSynchronizationService.cs (.../PipingDataSynchronizationService.cs) (revision 47fed94b289fbce64ac022db30d9a80273d496ff) +++ Riskeer/Piping/src/Riskeer.Piping.Service/PipingDataSynchronizationService.cs (.../PipingDataSynchronizationService.cs) (revision 07689bc00e324cdd50fc2cceba764126fc2e80fe) @@ -85,7 +85,7 @@ /// /// Clears: /// - /// The for all the calculations in the + /// The for the calculations in the /// that uses an from ; /// The output for all these calculations in the , /// except for the where