Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismAssemblyResultWithProbability.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismAssemblyResultWithProbability.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismAssemblyResultWithProbability.cs (revision 7de4e692b62a78191a0a0076f70c5b7ceae3ea31) @@ -0,0 +1,29 @@ +using Ringtoets.AssemblyTool.Data; + +namespace Ringtoets.Integration.IO.Assembly +{ + /// + /// Class that holds the information to export the assembly result with probability of a failure mechanism. + /// + public class ExportableFailureMechanismAssemblyResultWithProbability : ExportableFailureMechanismAssemblyResult + { + /// + /// Creates a new instance of . + /// + /// The method that was used to assemble this result. + /// The assembly result. + /// The probability of the assembly result. + public ExportableFailureMechanismAssemblyResultWithProbability(ExportableFailureMechanismAssemblyMethod assemblyMethod, + FailureMechanismAssemblyCategoryGroup assemblyCategory, + double probability) + : base(assemblyMethod, assemblyCategory) + { + Probability = probability; + } + + /// + /// Gets the probability. + /// + public double Probability { get; } + } +} \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj =================================================================== diff -u -r72791f54c0d59551e9468ca28acc573bfd001486 -r7de4e692b62a78191a0a0076f70c5b7ceae3ea31 --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision 72791f54c0d59551e9468ca28acc573bfd001486) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision 7de4e692b62a78191a0a0076f70c5b7ceae3ea31) @@ -20,6 +20,7 @@ + Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbablityTest.cs =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbablityTest.cs (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbablityTest.cs (revision 7de4e692b62a78191a0a0076f70c5b7ceae3ea31) @@ -0,0 +1,31 @@ +using System; +using Core.Common.TestUtil; +using NUnit.Framework; +using Ringtoets.AssemblyTool.Data; +using Ringtoets.Integration.IO.Assembly; + +namespace Ringtoets.Integration.IO.Test.Assembly +{ + [TestFixture] + public class ExportableFailureMechanismAssemblyResultWithProbablityTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(21); + var assemblyMethod = random.NextEnumValue(); + var assemblyCategory = random.NextEnumValue(); + double probability = random.NextDouble(); + + // Call + var assemblyResult = new ExportableFailureMechanismAssemblyResultWithProbability(assemblyMethod, assemblyCategory, probability); + + // Assert + Assert.IsInstanceOf(assemblyResult); + Assert.AreEqual(assemblyMethod, assemblyResult.AssemblyMethod); + Assert.AreEqual(assemblyCategory, assemblyResult.AssemblyCategory); + Assert.AreEqual(probability, assemblyResult.Probability); + } + } +} \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj =================================================================== diff -u -r72791f54c0d59551e9468ca28acc573bfd001486 -r7de4e692b62a78191a0a0076f70c5b7ceae3ea31 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 72791f54c0d59551e9468ca28acc573bfd001486) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 7de4e692b62a78191a0a0076f70c5b7ceae3ea31) @@ -23,6 +23,7 @@ +