Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs
===================================================================
diff -u -r8ff26e0d7885f432a6e470e8d68ce325bdc6a9bc -r1ba21a629ef9ee35b003e5f5e66f26f5b8bc7766
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision 8ff26e0d7885f432a6e470e8d68ce325bdc6a9bc)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision 1ba21a629ef9ee35b003e5f5e66f26f5b8bc7766)
@@ -47,7 +47,7 @@
/// A new .
/// Thrown when any input parameter is null.
/// Thrown when
- /// of is null or empty.
+ /// of is empty.
public static PipingStochasticSoilModel ReadAsPipingStochasticSoilModel(this StochasticSoilModelEntity entity,
ReadConversionCollector collector)
{
@@ -67,7 +67,7 @@
var model = new PipingStochasticSoilModel(entity.Name);
entity.ReadStochasticSoilProfiles(model, collector);
- model.Geometry.AddRange(ReadSegmentPoints(entity));
+ model.Geometry.AddRange(ReadSegmentPoints(entity.StochasticSoilModelSegmentPointXml));
collector.Read(entity, model);
@@ -83,7 +83,7 @@
/// A new .
/// Thrown when any input parameter is null.
/// Thrown when
- /// of is null or empty.
+ /// of is empty.
public static MacroStabilityInwardsStochasticSoilModel ReadAsMacroStabilityInwardsStochasticSoilModel(this StochasticSoilModelEntity entity,
ReadConversionCollector collector)
{
@@ -104,7 +104,7 @@
var model = new MacroStabilityInwardsStochasticSoilModel(entity.Name);
entity.ReadStochasticSoilProfiles(model, collector);
- model.Geometry.AddRange(ReadSegmentPoints(entity));
+ model.Geometry.AddRange(ReadSegmentPoints(entity.StochasticSoilModelSegmentPointXml));
collector.Read(entity, model);
@@ -133,9 +133,15 @@
}
}
- private static IEnumerable ReadSegmentPoints(StochasticSoilModelEntity entity)
+ ///
+ /// Reads the segment points.
+ ///
+ /// The xml containing a collection of .
+ /// The read segment points.
+ /// Thrown when is empty.
+ private static IEnumerable ReadSegmentPoints(string xml)
{
- return new Point2DXmlSerializer().FromXml(entity.StochasticSoilModelSegmentPointXml);
+ return new Point2DXmlSerializer().FromXml(xml);
}
}
}
\ No newline at end of file