Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/CalculationGroupEntityReadExtentions.cs
===================================================================
diff -u -rb610d57f72acd9222a40ad4a3215c4f0072bfcb1 -rb1c3b9019f8f74992a7f1a681d494ae836ce4976
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/CalculationGroupEntityReadExtentions.cs (.../CalculationGroupEntityReadExtentions.cs) (revision b610d57f72acd9222a40ad4a3215c4f0072bfcb1)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/CalculationGroupEntityReadExtentions.cs (.../CalculationGroupEntityReadExtentions.cs) (revision b1c3b9019f8f74992a7f1a681d494ae836ce4976)
@@ -144,6 +144,37 @@
return group;
}
+ ///
+ /// Read the and use the information to construct
+ /// a .
+ ///
+ /// The to create
+ /// for.
+ /// The object keeping track of read operations.
+ /// A new .
+ /// Thrown when is null.
+ internal static CalculationGroup ReadAsStabilityStoneCoverWaveConditionsCalculationGroup(this CalculationGroupEntity entity,
+ ReadConversionCollector collector)
+ {
+ if (collector == null)
+ {
+ throw new ArgumentNullException("collector");
+ }
+
+ var group = new CalculationGroup(entity.Name, Convert.ToBoolean(entity.IsEditable));
+
+ foreach (object childEntity in GetChildEntitiesInOrder(entity))
+ {
+ var childCalculationGroupEntity = childEntity as CalculationGroupEntity;
+ if (childCalculationGroupEntity != null)
+ {
+ group.Children.Add(childCalculationGroupEntity.ReadAsStabilityStoneCoverWaveConditionsCalculationGroup(collector));
+ }
+ }
+
+ return group;
+ }
+
private static IEnumerable GetChildEntitiesInOrder(CalculationGroupEntity entity)
{
var sortedList = new SortedList();