Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilProfileCreateExtensionsTest.cs =================================================================== diff -u -r01ff2c58c13df8f42661ae3e446dc2caaa94247e -r37aadd6a7b1a13ef1c8809b3479df0911c6632bb --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilProfileCreateExtensionsTest.cs (.../StochasticSoilProfileCreateExtensionsTest.cs) (revision 01ff2c58c13df8f42661ae3e446dc2caaa94247e) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilProfileCreateExtensionsTest.cs (.../StochasticSoilProfileCreateExtensionsTest.cs) (revision 37aadd6a7b1a13ef1c8809b3479df0911c6632bb) @@ -43,7 +43,7 @@ var stochasticSoilProfile = new StochasticSoilProfile(40, SoilProfileType.SoilProfile1D, -1); // Call - TestDelegate test = () => stochasticSoilProfile.Create(null); + TestDelegate test = () => stochasticSoilProfile.Create(null, 0); // Assert var parameterName = Assert.Throws(test).ParamName; @@ -54,19 +54,22 @@ public void Create_WithCollector_ReturnsStochasticSoilProfileEntityWithPropertiesSet() { // Setup - var probability = new Random(21).NextDouble(); + var random = new Random(21); + double probability = random.NextDouble(); + int order = random.Next(); var stochasticSoilProfile = new StochasticSoilProfile(probability, SoilProfileType.SoilProfile1D, -1) { SoilProfile = new TestPipingSoilProfile() }; var registry = new PersistenceRegistry(); // Call - var entity = stochasticSoilProfile.Create(registry); + var entity = stochasticSoilProfile.Create(registry, order); // Assert Assert.IsNotNull(entity); Assert.AreEqual(probability, entity.Probability); + Assert.AreEqual(order, entity.Order); } [Test] @@ -85,8 +88,8 @@ var registry = new PersistenceRegistry(); // Call - var firstEntity = firstStochasticSoilProfile.Create(registry); - var secondEntity = secondStochasticSoilProfile.Create(registry); + var firstEntity = firstStochasticSoilProfile.Create(registry, 0); + var secondEntity = secondStochasticSoilProfile.Create(registry, 0); // Assert Assert.AreSame(firstEntity.SoilProfileEntity, secondEntity.SoilProfileEntity); @@ -105,8 +108,8 @@ var registry = new PersistenceRegistry(); // Call - StochasticSoilProfileEntity entity1 = stochasticSoilProfile.Create(registry); - StochasticSoilProfileEntity entity2 = stochasticSoilProfile.Create(registry); + StochasticSoilProfileEntity entity1 = stochasticSoilProfile.Create(registry, 0); + StochasticSoilProfileEntity entity2 = stochasticSoilProfile.Create(registry, 0); // Assert Assert.AreSame(entity1, entity2);