Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs
===================================================================
diff -u -r9f936b0b29f490a024df02345df182133b1c041a -r00e2b17f81b30dfe4b71e3535424256d7cd02895
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs) (revision 9f936b0b29f490a024df02345df182133b1c041a)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs (.../MacroStabilityInwardsSoilProfileUnderSurfaceLine.cs) (revision 00e2b17f81b30dfe4b71e3535424256d7cd02895)
@@ -32,12 +32,18 @@
///
/// Creates a new instance of .
///
+ /// The name of the profile.
/// The layers in the profile.
/// The preconsolidation stresses defined for the profile.
/// Thrown when any parameter is null.
- public MacroStabilityInwardsSoilProfileUnderSurfaceLine(IEnumerable layers,
+ public MacroStabilityInwardsSoilProfileUnderSurfaceLine(string name,
+ IEnumerable layers,
IEnumerable preconsolidationStresses)
{
+ if (name == null)
+ {
+ throw new ArgumentNullException(nameof(name));
+ }
if (layers == null)
{
throw new ArgumentNullException(nameof(layers));
@@ -46,11 +52,18 @@
{
throw new ArgumentNullException(nameof(preconsolidationStresses));
}
+
+ Name = name;
Layers = layers;
PreconsolidationStresses = preconsolidationStresses;
}
///
+ /// Gets the name of the profile.
+ ///
+ public string Name { get; }
+
+ ///
/// Gets the layers in the profile.
///
public IEnumerable Layers { get; }