Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilModelCreateExtensionsTest.cs =================================================================== diff -u -r508d720230c5f63bce7f95bddc3b7a04808d267d -r37aadd6a7b1a13ef1c8809b3479df0911c6632bb --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilModelCreateExtensionsTest.cs (.../StochasticSoilModelCreateExtensionsTest.cs) (revision 508d720230c5f63bce7f95bddc3b7a04808d267d) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/StochasticSoilModelCreateExtensionsTest.cs (.../StochasticSoilModelCreateExtensionsTest.cs) (revision 37aadd6a7b1a13ef1c8809b3479df0911c6632bb) @@ -47,7 +47,7 @@ var stochasticSoilModel = new TestStochasticSoilModel(); // Call - TestDelegate test = () => stochasticSoilModel.Create(null); + TestDelegate test = () => stochasticSoilModel.Create(null, 0); // Assert var parameterName = Assert.Throws(test).ParamName; @@ -58,18 +58,20 @@ public void Create_WithCollector_ReturnsStochasticSoilModelEntityWithPropertiesSet() { // Setup + var order = new Random(1).Next(); string testName = "testName"; string testSegmentName = "testSegmentName"; var stochasticSoilModel = new StochasticSoilModel(-1, testName, testSegmentName); var registry = new PersistenceRegistry(); // Call - var entity = stochasticSoilModel.Create(registry); + var entity = stochasticSoilModel.Create(registry, order); // Assert Assert.IsNotNull(entity); Assert.AreEqual(testName, entity.Name); Assert.AreEqual(testSegmentName, entity.SegmentName); + Assert.AreEqual(order, entity.Order); Assert.IsEmpty(entity.StochasticSoilProfileEntities); } @@ -89,7 +91,7 @@ var registry = new PersistenceRegistry(); // Call - var entity = stochasticSoilModel.Create(registry); + var entity = stochasticSoilModel.Create(registry, 0); // Assert Assert.IsNotNull(entity); @@ -109,7 +111,7 @@ var registry = new PersistenceRegistry(); // Call - var entity = stochasticSoilModel.Create(registry); + var entity = stochasticSoilModel.Create(registry, 0); // Assert Assert.IsNotNull(entity); @@ -126,8 +128,8 @@ var registry = new PersistenceRegistry(); // Call - StochasticSoilModelEntity entity1 = soilModel.Create(registry); - StochasticSoilModelEntity entity2 = soilModel.Create(registry); + StochasticSoilModelEntity entity1 = soilModel.Create(registry, 0); + StochasticSoilModelEntity entity2 = soilModel.Create(registry, 0); // Assert Assert.AreSame(entity1, entity2);