Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/AssemblyCategoriesInput.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/AssemblyCategoriesInput.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/AssemblyCategoriesInput.cs (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) @@ -0,0 +1,53 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +namespace Ringtoets.AssemblyTool.Data +{ + /// + /// Class that contains the data that will be sent to the assembly kernel + /// for the determination of the assembly categories. + /// + public class AssemblyCategoriesInput + { + /// + /// Creates a new instance of . + /// + /// The 'N' parameter used to factor in the 'length effect'. + /// The contribution of a failure mechanism. + /// The signaling norm of the assessment section. + /// The lower limit norm of the assessment section. + public AssemblyCategoriesInput(double n, + double failureMechanismContribution, + double signalingNorm, + double lowerLimitNorm) + { + N = n; + FailureMechanismContribution = failureMechanismContribution; + SignalingNorm = signalingNorm; + LowerLimitNorm = lowerLimitNorm; + } + + public double N { get; } + public double FailureMechanismContribution { get; } + public double SignalingNorm { get; } + public double LowerLimitNorm { get; } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj =================================================================== diff -u -r04bef178c846add660097aeab97e3d35aefd939b -rd7c34bfcf02544a0ef1adfda5c7804234d7edf72 --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj (.../Ringtoets.AssemblyTool.Data.csproj) (revision 04bef178c846add660097aeab97e3d35aefd939b) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj (.../Ringtoets.AssemblyTool.Data.csproj) (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) @@ -11,6 +11,7 @@ + Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) @@ -0,0 +1,49 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using NUnit.Framework; + +namespace Ringtoets.AssemblyTool.Data.Test +{ + [TestFixture] + public class AssemblyCategoriesInputTest + { + [Test] + public void Constructor_ExpectedValues() + { + var random = new Random(11); + double n = random.NextDouble(); + double failureMechanismContribution = random.NextDouble(); + double signalingNorm = random.NextDouble(); + double lowerLimitNorm = random.NextDouble(); + + // Call + var input = new AssemblyCategoriesInput(n, failureMechanismContribution, signalingNorm, lowerLimitNorm); + + // Assert + Assert.AreEqual(n, input.N); + Assert.AreEqual(failureMechanismContribution, input.FailureMechanismContribution); + Assert.AreEqual(signalingNorm, input.SignalingNorm); + Assert.AreEqual(lowerLimitNorm, input.LowerLimitNorm); + } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj =================================================================== diff -u -rb46cba3269d292e5ca3374ec0f75810686cf3ec6 -rd7c34bfcf02544a0ef1adfda5c7804234d7edf72 --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj (.../Ringtoets.AssemblyTool.Data.Test.csproj) (revision b46cba3269d292e5ca3374ec0f75810686cf3ec6) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj (.../Ringtoets.AssemblyTool.Data.Test.csproj) (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) @@ -14,6 +14,7 @@ +