Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs
===================================================================
diff -u -r8b389428ece343431969fce2e902a7b241f2b372 -r2f41eb6eb560911cd4ebe2d4d6924c26df911c40
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision 8b389428ece343431969fce2e902a7b241f2b372)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresDataSynchronizationService.cs (.../HeightStructuresDataSynchronizationService.cs) (revision 2f41eb6eb560911cd4ebe2d4d6924c26df911c40)
@@ -122,8 +122,8 @@
}
///
- /// Removes the given height structure and all dependent data, either directly or indirectly,
- /// from the .
+ /// Removes the given and all dependent data, either directly
+ /// or indirectly, from the .
///
/// The failure mechanism containing .
/// The structure to be removed.
@@ -137,9 +137,9 @@
.Where(c => ReferenceEquals(c.InputParameters.Structure, structure))
.ToArray();
- HashSet changedObservables = RemoveStructureDependentData(failureMechanism,
- calculationWithRemovedHeightStructure,
- heightStructureCalculations);
+ ICollection changedObservables = RemoveStructureDependentData(failureMechanism,
+ calculationWithRemovedHeightStructure,
+ heightStructureCalculations);
failureMechanism.HeightStructures.Remove(structure);
changedObservables.Add(failureMechanism.HeightStructures);
@@ -169,19 +169,19 @@
.Where(c => c.InputParameters.Structure != null)
.ToArray();
- HashSet changedObservables = RemoveStructureDependentData(failureMechanism,
- calculationWithRemovedHeightStructure,
- heightStructureCalculations);
+ ICollection changedObservables = RemoveStructureDependentData(failureMechanism,
+ calculationWithRemovedHeightStructure,
+ heightStructureCalculations);
failureMechanism.HeightStructures.Clear();
changedObservables.Add(failureMechanism.HeightStructures);
return changedObservables;
}
- private static HashSet RemoveStructureDependentData(HeightStructuresFailureMechanism failureMechanism,
- StructuresCalculation[] calculationWithRemovedHeightStructure,
- StructuresCalculation[] heightStructureCalculations)
+ private static ICollection RemoveStructureDependentData(HeightStructuresFailureMechanism failureMechanism,
+ StructuresCalculation[] calculationWithRemovedHeightStructure,
+ StructuresCalculation[] heightStructureCalculations)
{
var changedObservables = new HashSet();
foreach (StructuresCalculation calculation in calculationWithRemovedHeightStructure)