Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssemblyResult.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssemblyResult.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssemblyResult.cs (revision e91f25ea44dfcbc5b16ab0953e4ad4add8f9736a)
@@ -0,0 +1,38 @@
+using System;
+
+namespace Ringtoets.Integration.IO.Assembly
+{
+ ///
+ /// Class that holds all the information to export a combined section assembly result.
+ ///
+ public class ExportableCombinedSectionAssemblyResult
+ {
+ ///
+ /// Creates a new instance of
+ ///
+ /// The assembly result of the combined section.
+ /// The code of the failure mechanism.
+ /// Thrown when is null.
+ public ExportableCombinedSectionAssemblyResult(ExportableFailureMechanismAssemblyResult combinedSectionAssembly,
+ ExportableFailureMechanismType code)
+ {
+ if (combinedSectionAssembly == null)
+ {
+ throw new ArgumentNullException(nameof(combinedSectionAssembly));
+ }
+
+ CombinedSectionAssembly = combinedSectionAssembly;
+ Code = code;
+ }
+
+ ///
+ /// Gets the assembly result.
+ ///
+ public ExportableFailureMechanismAssemblyResult CombinedSectionAssembly { get; }
+
+ ///
+ /// Gets the code of the failure mechanism.
+ ///
+ public ExportableFailureMechanismType Code { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanism.cs
===================================================================
diff -u -r611b9bd1425731d67886c37184e1cfcbea409d97 -re91f25ea44dfcbc5b16ab0953e4ad4add8f9736a
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanism.cs (.../ExportableFailureMechanism.cs) (revision 611b9bd1425731d67886c37184e1cfcbea409d97)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanism.cs (.../ExportableFailureMechanism.cs) (revision e91f25ea44dfcbc5b16ab0953e4ad4add8f9736a)
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using Ringtoets.Common.Data.FailureMechanism;
namespace Ringtoets.Integration.IO.Assembly
{
Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj
===================================================================
diff -u -r813dd2297b7f9945a005da0e3191dac27eee0cb5 -re91f25ea44dfcbc5b16ab0953e4ad4add8f9736a
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision 813dd2297b7f9945a005da0e3191dac27eee0cb5)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision e91f25ea44dfcbc5b16ab0953e4ad4add8f9736a)
@@ -18,6 +18,7 @@
+
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyResultTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyResultTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyResultTest.cs (revision e91f25ea44dfcbc5b16ab0953e4ad4add8f9736a)
@@ -0,0 +1,50 @@
+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 ExportableCombinedSectionAssemblyResultTest
+ {
+ [Test]
+ public void Constructor_CombinedSectionAssemblyNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var random = new Random(21);
+ var code = random.NextEnumValue();
+
+ // Call
+ TestDelegate call = () => new ExportableCombinedSectionAssemblyResult(null, code);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("combinedSectionAssembly", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ var code = random.NextEnumValue();
+ ExportableFailureMechanismAssemblyResult combinedSectionAssembly = CreateFailureMechanismAssemblyResult();
+
+ // Call
+ var assemblyResult = new ExportableCombinedSectionAssemblyResult(combinedSectionAssembly, code);
+
+ // Assert
+ Assert.AreSame(combinedSectionAssembly, assemblyResult.CombinedSectionAssembly);
+ Assert.AreEqual(code, assemblyResult.Code);
+ }
+
+ private static ExportableFailureMechanismAssemblyResult CreateFailureMechanismAssemblyResult()
+ {
+ var random = new Random(21);
+ return new ExportableFailureMechanismAssemblyResult(random.NextEnumValue(),
+ random.NextEnumValue());
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj
===================================================================
diff -u -r813dd2297b7f9945a005da0e3191dac27eee0cb5 -re91f25ea44dfcbc5b16ab0953e4ad4add8f9736a
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 813dd2297b7f9945a005da0e3191dac27eee0cb5)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision e91f25ea44dfcbc5b16ab0953e4ad4add8f9736a)
@@ -22,6 +22,7 @@
+