Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsDataSynchronizationService.cs
===================================================================
diff -u -rf7b5ed585321bbc2249ec9c8ecd8af7f9eb1808a -r1f2e8750b43af706757de6251ce5b6ac2dabea29
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsDataSynchronizationService.cs (.../GrassCoverErosionInwardsDataSynchronizationService.cs) (revision f7b5ed585321bbc2249ec9c8ecd8af7f9eb1808a)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsDataSynchronizationService.cs (.../GrassCoverErosionInwardsDataSynchronizationService.cs) (revision 1f2e8750b43af706757de6251ce5b6ac2dabea29)
@@ -37,9 +37,12 @@
///
/// Clears the output for all calculations in the .
///
- /// The which contains the calculations.
- /// An of calculations which are affected by clearing the output.
- /// Thrown when is null.
+ /// The
+ /// which contains the calculations.
+ /// An of calculations which are affected by
+ /// clearing the output.
+ /// Thrown when
+ /// is null.
public static IEnumerable ClearAllCalculationOutput(GrassCoverErosionInwardsFailureMechanism failureMechanism)
{
if (failureMechanism == null)
@@ -51,7 +54,7 @@
.Cast()
.Where(c => c.HasOutput)
.ToArray();
-
+
affectedItems.ForEachElementDo(ClearCalculationOutput);
return affectedItems;
@@ -60,8 +63,10 @@
///
/// Clears the output of the given .
///
- /// The to clear the output for.
- /// Thrown when is null.
+ /// The
+ /// to clear the output for.
+ /// Thrown when
+ /// is null.
public static void ClearCalculationOutput(GrassCoverErosionInwardsCalculation calculation)
{
if (calculation == null)
@@ -73,11 +78,15 @@
}
///
- /// Clears the for all the calculations in the .
+ /// Clears the for all the calculations in
+ /// the .
///
- /// The which contains the calculations.
- /// An of calculations which are affected by clearing the output.
- /// Thrown when is null.
+ /// The
+ /// which contains the calculations.
+ /// An of calculations which are affected by
+ /// removing .
+ /// Thrown when
+ /// is null.
public static IEnumerable ClearHydraulicBoundaryLocations(GrassCoverErosionInwardsFailureMechanism failureMechanism)
{
if (failureMechanism == null)
@@ -96,11 +105,15 @@
}
///
- /// Clears the and output for all the calculations in the .
+ /// Clears the and output for all the calculations
+ /// in the .
///
- /// The which contains the calculations.
- /// An of calculations which are affected by clearing the output.
- /// Thrown when is null.
+ /// The
+ /// which contains the calculations.
+ /// An of calculations which are affected by
+ /// removal of data.
+ /// Thrown when
+ /// is null.
public static IEnumerable ClearAllCalculationOutputAndHydraulicBoundaryLocations(GrassCoverErosionInwardsFailureMechanism failureMechanism)
{
if (failureMechanism == null)
@@ -109,7 +122,6 @@
}
Collection affectedItems = new Collection();
-
foreach (var calculation in failureMechanism.Calculations.Cast())
{
var calculationChanged = false;