Index: Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationOutput.cs
===================================================================
diff -u -r8ba742d2139563c9571e32f074c7c4b3077f45ee -r5f40a81ccc0990cb8cdaf7776608e56a7fdae72c
--- Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationOutput.cs (.../HydraulicBoundaryLocationOutput.cs) (revision 8ba742d2139563c9571e32f074c7c4b3077f45ee)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationOutput.cs (.../HydraulicBoundaryLocationOutput.cs) (revision 5f40a81ccc0990cb8cdaf7776608e56a7fdae72c)
@@ -27,7 +27,7 @@
namespace Ringtoets.Common.Data.Hydraulics
{
///
- /// This class contains the result a calculation for a .
+ /// This class contains the result of a calculation for a .
///
public class HydraulicBoundaryLocationOutput
{
Index: Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj
===================================================================
diff -u -r36dc20e08bbea5640708a304ad62687719fe2089 -r5f40a81ccc0990cb8cdaf7776608e56a7fdae72c
--- Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 36dc20e08bbea5640708a304ad62687719fe2089)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 5f40a81ccc0990cb8cdaf7776608e56a7fdae72c)
@@ -128,6 +128,7 @@
+
Index: Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresOutput.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresOutput.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresOutput.cs (revision 5f40a81ccc0990cb8cdaf7776608e56a7fdae72c)
@@ -0,0 +1,50 @@
+// 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 Ringtoets.Common.Data.Probability;
+
+namespace Ringtoets.Common.Data.Structures
+{
+ ///
+ /// This class contains the result of a calculation for a .
+ ///
+ public class StructuresOutput
+ {
+ ///
+ /// Creates an instance of .
+ ///
+ /// The results of the probabilistic
+ /// assessment calculation.
+ /// Thrown when
+ /// is null.
+ public StructuresOutput(ProbabilityAssessmentOutput probabilityAssessmentOutput)
+ {
+ if (probabilityAssessmentOutput == null)
+ {
+ throw new ArgumentNullException(nameof(probabilityAssessmentOutput));
+ }
+ ProbabilityAssessmentOutput = probabilityAssessmentOutput;
+ }
+
+ public ProbabilityAssessmentOutput ProbabilityAssessmentOutput { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj
===================================================================
diff -u -r36dc20e08bbea5640708a304ad62687719fe2089 -r5f40a81ccc0990cb8cdaf7776608e56a7fdae72c
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 36dc20e08bbea5640708a304ad62687719fe2089)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 5f40a81ccc0990cb8cdaf7776608e56a7fdae72c)
@@ -120,6 +120,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (revision 5f40a81ccc0990cb8cdaf7776608e56a7fdae72c)
@@ -0,0 +1,67 @@
+// 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;
+using Ringtoets.Common.Data.Probability;
+using Ringtoets.Common.Data.Structures;
+
+namespace Ringtoets.Common.Data.Test.Structures
+{
+ [TestFixture]
+ public class StructuresOutputTest
+ {
+ [Test]
+ public void Constructor_ProbabilityAssessmentNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new StructuresOutput(null);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("probabilityAssessmentOutput", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ValidProbabilityAssessmentOutput_ReturnsExpectedProperties()
+ {
+ // Setup
+ var random = new Random(21);
+
+ double requiredProbability = random.NextDouble();
+ double requiredReliability = random.NextDouble();
+ double probability = random.NextDouble();
+ double reliability = random.NextDouble();
+ double factorOfSafety = random.NextDouble();
+ var output = new ProbabilityAssessmentOutput(requiredProbability,
+ requiredReliability,
+ probability,
+ reliability,
+ factorOfSafety);
+
+ // Call
+ var structuresOutput = new StructuresOutput(output);
+
+ // Assert
+ Assert.AreSame(output, structuresOutput.ProbabilityAssessmentOutput);
+ }
+ }
+}
\ No newline at end of file