Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsStochasticSoilModelTestFactory.cs =================================================================== diff -u -ra20f5008f39cfa4fd6f94572fd07a011f76609f4 -rb13759ad077f9e2b4104de000b5bdeafa9abe358 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsStochasticSoilModelTestFactory.cs (.../MacroStabilityInwardsStochasticSoilModelTestFactory.cs) (revision a20f5008f39cfa4fd6f94572fd07a011f76609f4) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsStochasticSoilModelTestFactory.cs (.../MacroStabilityInwardsStochasticSoilModelTestFactory.cs) (revision b13759ad077f9e2b4104de000b5bdeafa9abe358) @@ -34,7 +34,7 @@ public static class MacroStabilityInwardsStochasticSoilModelTestFactory { /// - /// Creates an instance of . + /// Creates an instance of with an empty name. /// /// A valid instance of . public static MacroStabilityInwardsStochasticSoilModel CreateValidStochasticSoilModel() @@ -75,14 +75,12 @@ public static MacroStabilityInwardsStochasticSoilModel CreateValidStochasticSoilModel(string soilModelName, IEnumerable geometry) { - var model = new MacroStabilityInwardsStochasticSoilModel(soilModelName, geometry); - MacroStabilityInwardsSoilProfile1D soilProfileA = MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D("A"); MacroStabilityInwardsSoilProfile1D soilProfileB = MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D("B"); - model.StochasticSoilProfiles.AddRange(new[] + var model = new MacroStabilityInwardsStochasticSoilModel(soilModelName, geometry, new[] { new MacroStabilityInwardsStochasticSoilProfile(0.5, soilProfileA), new MacroStabilityInwardsStochasticSoilProfile(0.5, soilProfileB) @@ -98,7 +96,7 @@ /// The name of the soil model. /// The geometry of the soil model. /// A valid configured with the - /// specified . + /// specified and . /// Thrown when or /// is null. /// Thrown when is @@ -111,9 +109,23 @@ { new Point2D(1, 1), new Point2D(2, 2) - }); - model.StochasticSoilProfiles.AddRange(stochasticSoilProfiles); + }, stochasticSoilProfiles); return model; } + + /// + /// Creates an instance of + /// with specified stochastic soil profiles and an empty name. + /// + /// The geometry of the soil model. + /// A valid configured with the + /// specified . + /// Thrown when is null. + /// Thrown when is + /// empty. + public static MacroStabilityInwardsStochasticSoilModel CreateValidStochasticSoilModel(IEnumerable stochasticSoilProfiles) + { + return CreateValidStochasticSoilModel(string.Empty, stochasticSoilProfiles); + } } } \ No newline at end of file