Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresDataSynchronizationService.cs =================================================================== diff -u -r73597729ce18d3ee00d8036bca8341e9c12f2953 -rab20c4eb4ca81bd3845d50210d2bdb301177af6a --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresDataSynchronizationService.cs (.../ClosingStructuresDataSynchronizationService.cs) (revision 73597729ce18d3ee00d8036bca8341e9c12f2953) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Service/ClosingStructuresDataSynchronizationService.cs (.../ClosingStructuresDataSynchronizationService.cs) (revision ab20c4eb4ca81bd3845d50210d2bdb301177af6a) @@ -25,6 +25,7 @@ using System.Linq; using Core.Common.Utils.Extensions; using Ringtoets.ClosingStructures.Data; +using Ringtoets.Common.Data.Structures; using Ringtoets.HydraRing.Data; namespace Ringtoets.ClosingStructures.Service @@ -43,15 +44,15 @@ /// clearing the output. /// Thrown when /// is null. - public static IEnumerable ClearAllCalculationOutput(ClosingStructuresFailureMechanism failureMechanism) + public static IEnumerable> ClearAllCalculationOutput(ClosingStructuresFailureMechanism failureMechanism) { if (failureMechanism == null) { throw new ArgumentNullException("failureMechanism"); } var affectedItems = failureMechanism.Calculations - .Cast() + .Cast>() .Where(c => c.HasOutput) .ToArray(); @@ -61,13 +62,13 @@ } /// - /// Clears the output of the given . + /// Clears the output of the given . /// - /// The to clear + /// The to clear /// the output for. /// Thrown when /// is null. - public static void ClearCalculationOutput(ClosingStructuresCalculation calculation) + public static void ClearCalculationOutput(StructuresCalculation calculation) { if (calculation == null) { @@ -79,23 +80,23 @@ /// /// Clears the for all the calculations in - /// the . + /// the . /// /// The /// which contains the calculations. /// An of calculations which are affected by /// removing . /// Thrown when /// is null. - public static IEnumerable ClearHydraulicBoundaryLocations(ClosingStructuresFailureMechanism failureMechanism) + public static IEnumerable> ClearHydraulicBoundaryLocations(ClosingStructuresFailureMechanism failureMechanism) { if (failureMechanism == null) { throw new ArgumentNullException("failureMechanism"); } var affectedItems = failureMechanism.Calculations - .Cast() + .Cast>() .Where(c => c.InputParameters.HydraulicBoundaryLocation != null) .ToArray(); @@ -106,24 +107,24 @@ /// /// Clears the and output for all the calculations - /// in the . + /// in the . /// - /// The + /// The /// which contains the calculations. /// An of calculations which are affected by /// removing data. /// Thrown when /// is null. - public static IEnumerable ClearAllCalculationOutputAndHydraulicBoundaryLocations(ClosingStructuresFailureMechanism failureMechanism) + public static IEnumerable> ClearAllCalculationOutputAndHydraulicBoundaryLocations(ClosingStructuresFailureMechanism failureMechanism) { if (failureMechanism == null) { throw new ArgumentNullException("failureMechanism"); } - Collection affectedItems = new Collection(); + Collection> affectedItems = new Collection>(); - foreach (var calculation in failureMechanism.Calculations.Cast()) + foreach (var calculation in failureMechanism.Calculations.Cast>()) { var calculationChanged = false; @@ -148,7 +149,7 @@ return affectedItems; } - private static void ClearHydraulicBoundaryLocation(ClosingStructuresCalculation calculation) + private static void ClearHydraulicBoundaryLocation(StructuresCalculation calculation) { calculation.InputParameters.HydraulicBoundaryLocation = null; }