Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismTest.cs =================================================================== diff -u -ra48bcdc9670ec7dc1da17ca73bb6fc1f287c39a1 -ra5a1867560f3705d7037a951c9c1a7f9e817a0a6 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismTest.cs (.../ExportableFailureMechanismTest.cs) (revision a48bcdc9670ec7dc1da17ca73bb6fc1f287c39a1) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismTest.cs (.../ExportableFailureMechanismTest.cs) (revision a5a1867560f3705d7037a951c9c1a7f9e817a0a6) @@ -24,8 +24,8 @@ using System.Linq; using Core.Common.TestUtil; using NUnit.Framework; -using Ringtoets.AssemblyTool.Data; using Ringtoets.Integration.IO.Assembly; +using Ringtoets.Integration.IO.TestUtil; namespace Ringtoets.Integration.IO.Test.Assembly { @@ -63,7 +63,8 @@ // Call TestDelegate call = () => new ExportableFailureMechanism( - CreateFailureMechanismAssemblyResult(), null, sectionAssemblyResults, code, group); + ExportableFailureMechanismAssemblyResultTestFactory.CreateFailureMechanismAssemblyResultWithoutProbability(), + null, sectionAssemblyResults, code, group); // Assert var exception = Assert.Throws(call); @@ -81,7 +82,8 @@ // Call TestDelegate call = () => new ExportableFailureMechanism( - CreateFailureMechanismAssemblyResult(), sections, null, code, group); + ExportableFailureMechanismAssemblyResultTestFactory.CreateFailureMechanismAssemblyResultWithoutProbability(), + sections, null, code, group); // Assert var exception = Assert.Throws(call); @@ -93,7 +95,8 @@ { // Setup var random = new Random(21); - ExportableFailureMechanismAssemblyResult failureMechanismAssembly = CreateFailureMechanismAssemblyResult(); + ExportableFailureMechanismAssemblyResult failureMechanismAssembly = + ExportableFailureMechanismAssemblyResultTestFactory.CreateFailureMechanismAssemblyResultWithoutProbability(); IEnumerable sections = Enumerable.Empty(); IEnumerable sectionAssemblyResults = Enumerable.Empty(); @@ -111,12 +114,5 @@ Assert.AreEqual(code, failureMechanism.Code); Assert.AreEqual(group, failureMechanism.Group); } - - private static ExportableFailureMechanismAssemblyResult CreateFailureMechanismAssemblyResult() - { - var random = new Random(21); - return new ExportableFailureMechanismAssemblyResult(random.NextEnumValue(), - random.NextEnumValue()); - } } } \ No newline at end of file