Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs =================================================================== diff -u -rab20c4eb4ca81bd3845d50210d2bdb301177af6a -r183d1e7ed095ea4e8024068bc4ddfcf3ac6997d3 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision 183d1e7ed095ea4e8024068bc4ddfcf3ac6997d3) @@ -56,29 +56,12 @@ .Where(c => c.HasOutput) .ToArray(); - affectedItems.ForEachElementDo(ClearCalculationOutput); + affectedItems.ForEachElementDo(item => item.ClearOutput()); return affectedItems; } /// - /// Clears the output of the given . - /// - /// The to clear - /// the output for. - /// Thrown when - /// is null. - public static void ClearCalculationOutput(StructuresCalculation calculation) - { - if (calculation == null) - { - throw new ArgumentNullException("calculation"); - } - - calculation.Output = null; - } - - /// /// Clears the for all the calculations in /// the . /// @@ -130,7 +113,7 @@ if (calculation.HasOutput) { - ClearCalculationOutput(calculation); + calculation.ClearOutput(); calculationChanged = true; }