Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSoilProfile1D.cs
===================================================================
diff -u -rec27d9f02dc27c2829ed45788fae7d5923d63d3d -r376649a985f9523e6ecac956b3abd39ed1a64369
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSoilProfile1D.cs (.../MacroStabilityInwardsSoilProfile1D.cs) (revision ec27d9f02dc27c2829ed45788fae7d5923d63d3d)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSoilProfile1D.cs (.../MacroStabilityInwardsSoilProfile1D.cs) (revision 376649a985f9523e6ecac956b3abd39ed1a64369)
@@ -32,9 +32,11 @@
public class MacroStabilityInwardsSoilProfile1D : ISoilProfile
{
private MacroStabilityInwardsSoilLayer1D[] layers;
+ private string name;
///
- /// Creates a new instance ofL , with the given , and .
+ /// Creates a new instance ofL , with the given ,
+ /// and .
/// A new collection is created for and used in the .
///
/// The name of the profile.
@@ -44,7 +46,8 @@
/// to build this instance.
/// Identifier of the profile.
/// Thrown when contains no layers.
- /// Thrown when is null.
+ /// Thrown when or
+ /// is null.
public MacroStabilityInwardsSoilProfile1D(string name, double bottom, IEnumerable layers, SoilProfileType sourceProfileType, long soilProfileId)
{
Name = name;
@@ -67,7 +70,21 @@
///
/// Gets the name of .
///
- public string Name { get; }
+ public string Name
+ {
+ get
+ {
+ return name;
+ }
+ private set
+ {
+ if (value == null)
+ {
+ throw new ArgumentNullException(nameof(value));
+ }
+ name = value;
+ }
+ }
///
/// Gets an ordered (by , descending) of