Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsStochasticSoilModel.cs =================================================================== diff -u -rda4a311b2ac60defe1a27a61c8d151f47268a941 -ra20f5008f39cfa4fd6f94572fd07a011f76609f4 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsStochasticSoilModel.cs (.../MacroStabilityInwardsStochasticSoilModel.cs) (revision da4a311b2ac60defe1a27a61c8d151f47268a941) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/SoilProfile/MacroStabilityInwardsStochasticSoilModel.cs (.../MacroStabilityInwardsStochasticSoilModel.cs) (revision a20f5008f39cfa4fd6f94572fd07a011f76609f4) @@ -25,6 +25,7 @@ using Core.Common.Base; using Core.Common.Base.Geometry; using Ringtoets.Common.Data; +using Ringtoets.MacroStabilityInwards.Data.Properties; namespace Ringtoets.MacroStabilityInwards.Data.SoilProfile { @@ -38,23 +39,6 @@ /// Creates a new instance of . /// /// Name of the segment soil model. - /// Thrown when is - /// null. - public MacroStabilityInwardsStochasticSoilModel(string name) - { - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - Name = name; - Geometry = new List(); - StochasticSoilProfiles = new List(); - } - - /// - /// Creates a new instance of . - /// - /// Name of the segment soil model. /// The geometry of the segment soil model. /// Thrown when any parameter is null. /// Thrown when is empty. @@ -70,8 +54,8 @@ } if (!geometry.Any()) { - string message = string.Format("Het stochastische ondergrondmodel '{0}' moet een geometrie bevatten.", name); - throw new ArgumentException(); + string message = string.Format(Resources.MacroStabilityInwardsStochasticSoilModel_Geometry_of_MacroStabilityInwardsStochasticSoilModelName_0_must_contain_a_geometry, name); + throw new ArgumentException(message); } Name = name;