Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionDataSynchronizationService.cs =================================================================== diff -u -r76ae563a2db79178d0a21533f320f17d738f4048 -r35cdb63312e00d641feb421d02e99b08b087938f --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionDataSynchronizationService.cs (.../DuneErosionDataSynchronizationService.cs) (revision 76ae563a2db79178d0a21533f320f17d738f4048) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionDataSynchronizationService.cs (.../DuneErosionDataSynchronizationService.cs) (revision 35cdb63312e00d641feb421d02e99b08b087938f) @@ -115,32 +115,19 @@ } /// - /// Clears the output of the dune location calculations within the dune erosion failure mechanism. + /// Clears the output of the dune location calculations within the collection. /// - /// The failure mechanism for which the output of the calculations needs to be cleared. + /// The calculations for which the output needs to be cleared. /// All objects changed during the clear. - /// Thrown when is null. - public static IEnumerable ClearDuneCalculationOutputs(DuneErosionFailureMechanism failureMechanism) + /// Thrown when is null. + public static IEnumerable ClearDuneCalculationsOutput(IEnumerable calculations) { - if (failureMechanism == null) + if (calculations == null) { - throw new ArgumentNullException(nameof(failureMechanism)); + throw new ArgumentNullException(nameof(calculations)); } var affectedCalculations = new List(); - - affectedCalculations.AddRange(ClearDuneCalculationsOutput(failureMechanism.CalculationsForMechanismSpecificFactorizedSignalingNorm)); - affectedCalculations.AddRange(ClearDuneCalculationsOutput(failureMechanism.CalculationsForMechanismSpecificSignalingNorm)); - affectedCalculations.AddRange(ClearDuneCalculationsOutput(failureMechanism.CalculationsForMechanismSpecificLowerLimitNorm)); - affectedCalculations.AddRange(ClearDuneCalculationsOutput(failureMechanism.CalculationsForLowerLimitNorm)); - affectedCalculations.AddRange(ClearDuneCalculationsOutput(failureMechanism.CalculationsForFactorizedLowerLimitNorm)); - - return affectedCalculations; - } - - private static IEnumerable ClearDuneCalculationsOutput(IEnumerable calculations) - { - var affectedCalculations = new List(); foreach (DuneLocationCalculation calculation in calculations) { if (calculation.Output != null)