Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs =================================================================== diff -u -r508d720230c5f63bce7f95bddc3b7a04808d267d -r61af2d41d88907e33ced4083ec53c2327718fd9a --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision 508d720230c5f63bce7f95bddc3b7a04808d267d) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision 61af2d41d88907e33ced4083ec53c2327718fd9a) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Linq; using Application.Ringtoets.Storage.BinaryConverters; using Application.Ringtoets.Storage.DbContext; @@ -93,8 +94,10 @@ SoilLayerEntities = { new SoilLayerEntity() - } - } + }, + Name = "A" + }, + Order = 1 }, new StochasticSoilProfileEntity { @@ -103,18 +106,21 @@ SoilLayerEntities = { new SoilLayerEntity() - } - } + }, + Name = "B" + }, + Order = 0 } } }; var collector = new ReadConversionCollector(); // Call - var model = entity.Read(collector); + StochasticSoilModel model = entity.Read(collector); // Assert Assert.AreEqual(2, model.StochasticSoilProfiles.Count); + CollectionAssert.AreEqual(new[]{"B", "A"}, model.StochasticSoilProfiles.Select(ssp => ssp.SoilProfile.Name)); } [Test]