Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssembly.cs =================================================================== diff -u -rd325382ef04191a3fc777105f4d843087f5c7c57 -r6db3f84335e15d1baac7829c7f10d44d5bae08b7 --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssembly.cs (.../ExportableCombinedSectionAssembly.cs) (revision d325382ef04191a3fc777105f4d843087f5c7c57) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssembly.cs (.../ExportableCombinedSectionAssembly.cs) (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -17,7 +17,7 @@ /// Thrown when any parameter is null. public ExportableCombinedSectionAssembly(ExportableCombinedFailureMechanismSection section, ExportableFailureMechanismAssemblyResult combinedAssemblyResult, - IEnumerable failureMechanismResults) + IEnumerable failureMechanismResults) { if (section == null) { @@ -52,6 +52,6 @@ /// /// Gets the assembly results per failure mechanism. /// - public IEnumerable FailureMechanismResults { get; } + public IEnumerable FailureMechanismResults { get; } } } \ No newline at end of file Fisheye: Tag 6db3f84335e15d1baac7829c7f10d44d5bae08b7 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableCombinedSectionAssemblyResult.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResult.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResult.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResult.cs (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -0,0 +1,38 @@ +using System; + +namespace Ringtoets.Integration.IO.Assembly +{ + /// + /// Class that holds all the information to export a combined section assembly result of a failure mechanism. + /// + public class ExportableFailureMechanismCombinedSectionAssemblyResult + { + /// + /// Creates a new instance of + /// + /// The assembly result of the combined section. + /// The code of the failure mechanism. + /// Thrown when is null. + public ExportableFailureMechanismCombinedSectionAssemblyResult(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/Ringtoets.Integration.IO.csproj =================================================================== diff -u -rd325382ef04191a3fc777105f4d843087f5c7c57 -r6db3f84335e15d1baac7829c7f10d44d5bae08b7 --- Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision d325382ef04191a3fc777105f4d843087f5c7c57) +++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Ringtoets.Integration.IO.csproj (.../Ringtoets.Integration.IO.csproj) (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -19,7 +19,7 @@ - + Fisheye: Tag 6db3f84335e15d1baac7829c7f10d44d5bae08b7 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyResultTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyTest.cs =================================================================== diff -u -rd325382ef04191a3fc777105f4d843087f5c7c57 -r6db3f84335e15d1baac7829c7f10d44d5bae08b7 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyTest.cs (.../ExportableCombinedSectionAssemblyTest.cs) (revision d325382ef04191a3fc777105f4d843087f5c7c57) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableCombinedSectionAssemblyTest.cs (.../ExportableCombinedSectionAssemblyTest.cs) (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -17,7 +17,7 @@ { // Setup ExportableFailureMechanismAssemblyResult combinedAssemblyResult = CreateFailureMechanismAssemblyResult(); - IEnumerable failureMechanismResults = Enumerable.Empty(); + IEnumerable failureMechanismResults = Enumerable.Empty(); // Call TestDelegate call = () => new ExportableCombinedSectionAssembly(null, combinedAssemblyResult, failureMechanismResults); @@ -36,7 +36,7 @@ random.NextDouble(), random.NextDouble(), random.NextEnumValue()); - IEnumerable failureMechanismResults = Enumerable.Empty(); + IEnumerable failureMechanismResults = Enumerable.Empty(); // Call TestDelegate call = () => new ExportableCombinedSectionAssembly(section, null, failureMechanismResults); @@ -75,7 +75,7 @@ random.NextDouble(), random.NextEnumValue()); ExportableFailureMechanismAssemblyResult combinedAssemblyResult = CreateFailureMechanismAssemblyResult(); - IEnumerable failureMechanismResults = Enumerable.Empty(); + IEnumerable failureMechanismResults = Enumerable.Empty(); // Call var result = new ExportableCombinedSectionAssembly(section, combinedAssemblyResult, failureMechanismResults); Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -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 ExportableFailureMechanismCombinedSectionAssemblyResultTest + { + [Test] + public void Constructor_CombinedSectionAssemblyNull_ThrowsArgumentNullException() + { + // Setup + var random = new Random(21); + var code = random.NextEnumValue(); + + // Call + TestDelegate call = () => new ExportableFailureMechanismCombinedSectionAssemblyResult(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 ExportableFailureMechanismCombinedSectionAssemblyResult(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 -rd325382ef04191a3fc777105f4d843087f5c7c57 -r6db3f84335e15d1baac7829c7f10d44d5bae08b7 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision d325382ef04191a3fc777105f4d843087f5c7c57) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) @@ -22,7 +22,7 @@ - +