Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/SoilProfile/StochasticSoilProfileTest.cs =================================================================== diff -u -r58d98ab4a0a75497b2752eff1a931f6f7ee3fa8a -r6f3f1fabca21935a2198e59ee423f833b75a3d36 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/SoilProfile/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 58d98ab4a0a75497b2752eff1a931f6f7ee3fa8a) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/SoilProfile/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 6f3f1fabca21935a2198e59ee423f833b75a3d36) @@ -44,11 +44,8 @@ var soilProfile = mockRepository.Stub(); mockRepository.ReplayAll(); - var random = new Random(9); - int soilProfileId = random.Next(); - // Call - TestDelegate test = () => new StochasticSoilProfile(soilProfileId, probability, soilProfile); + TestDelegate test = () => new StochasticSoilProfile(probability, soilProfile); // Assert const string expectedMessage = "Het aandeel van de ondergrondschematisatie in het stochastische ondergrondmodel moet in het bereik [0,0, 1,0] liggen."; @@ -67,15 +64,13 @@ var random = new Random(9); double probability = random.NextDouble(); - int soilProfileId = random.Next(); // Call - var profile = new StochasticSoilProfile(soilProfileId, probability, soilProfile); + var profile = new StochasticSoilProfile(probability, soilProfile); // Assert Assert.AreEqual(probability, profile.Probability); Assert.AreSame(soilProfile, profile.SoilProfile); - Assert.AreEqual(soilProfileId, profile.SoilProfileId); mockRepository.VerifyAll(); }