Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs =================================================================== diff -u -ra0e52fbfb95d4930abf6e828fc87e6f4834fb55a -rb018578a2c719c00258c5a32a571c1dff77d2242 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs (.../PipingStochasticSoilModelCreateExtensionsTest.cs) (revision a0e52fbfb95d4930abf6e828fc87e6f4834fb55a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs (.../PipingStochasticSoilModelCreateExtensionsTest.cs) (revision b018578a2c719c00258c5a32a571c1dff77d2242) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Linq; using Application.Ringtoets.Storage.Create; using Application.Ringtoets.Storage.Create.Piping; using Application.Ringtoets.Storage.DbContext; @@ -110,8 +111,8 @@ { StochasticSoilProfiles = { - new PipingStochasticSoilProfile(0.5, PipingSoilProfileTestFactory.CreatePipingSoilProfile()), - new PipingStochasticSoilProfile(0.5, PipingSoilProfileTestFactory.CreatePipingSoilProfile()) + new PipingStochasticSoilProfile(0.6, PipingSoilProfileTestFactory.CreatePipingSoilProfile()), + new PipingStochasticSoilProfile(0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile()) } }; var registry = new PersistenceRegistry(); @@ -122,6 +123,11 @@ // Assert Assert.IsNotNull(entity); Assert.AreEqual(2, entity.PipingStochasticSoilProfileEntities.Count); + + PipingStochasticSoilProfileEntity stochastEntity = entity.PipingStochasticSoilProfileEntities.First(); + Assert.AreEqual(stochasticSoilModel.StochasticSoilProfiles.First().Probability, stochastEntity.Probability); + Assert.IsNotNull(stochastEntity.PipingSoilProfileEntity); + Assert.AreEqual(0, entity.MacroStabilityInwardsStochasticSoilProfileEntities.Count); }