Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/AssessmentSectionAssemblyResult.cs
===================================================================
diff -u
--- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/AssessmentSectionAssemblyResult.cs (revision 0)
+++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/AssessmentSectionAssemblyResult.cs (revision 0cb310d64f74690341eb675068b979273b028e33)
@@ -0,0 +1,51 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 Riskeer.AssemblyTool.Data
+{
+ ///
+ /// Assembly result of an assessment section.
+ ///
+ public class AssessmentSectionAssemblyResult
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The failure probability of the assessment section.
+ /// The .
+ public AssessmentSectionAssemblyResult(double probability,
+ AssessmentSectionAssemblyCategoryGroup assemblyCategoryGroup)
+ {
+ Probability = probability;
+ AssemblyCategoryGroup = assemblyCategoryGroup;
+ }
+
+ ///
+ /// Gets the probability of the profile.
+ ///
+ public double Probability { get; }
+
+ ///
+ /// Gets the .
+ ///
+ public AssessmentSectionAssemblyCategoryGroup AssemblyCategoryGroup { get; }
+ }
+}
\ No newline at end of file
Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyResult.cs
===================================================================
diff -u -r247dae61ffc4218bf9d2584560864f9534a86d37 -r0cb310d64f74690341eb675068b979273b028e33
--- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyResult.cs (.../FailureMechanismSectionAssemblyResult.cs) (revision 247dae61ffc4218bf9d2584560864f9534a86d37)
+++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyResult.cs (.../FailureMechanismSectionAssemblyResult.cs) (revision 0cb310d64f74690341eb675068b979273b028e33)
@@ -27,9 +27,9 @@
public class FailureMechanismSectionAssemblyResult
{
///
- /// Instantiates a .
+ /// Creates a new instance of .
///
- /// The probability of the failure mechanism section, expressed for profile
+ /// The probability of the failure mechanism section, expressed for profile.
/// The probability of the failure mechanism section, expressed for the section.
/// The length effect of the failure mechanism section.
/// The .
Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyResultTest.cs
===================================================================
diff -u
--- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyResultTest.cs (revision 0)
+++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyResultTest.cs (revision 0cb310d64f74690341eb675068b979273b028e33)
@@ -0,0 +1,47 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer 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 Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class AssessmentSectionAssemblyResultTest
+ {
+ [Test]
+ public void Constructor_WithArguments_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ double probability = random.NextDouble();
+ var category = random.NextEnumValue();
+
+ // Call
+ var result = new AssessmentSectionAssemblyResult(probability, category);
+
+ // Assert
+ Assert.AreEqual(probability, result.Probability);
+ Assert.AreEqual(category, result.AssemblyCategoryGroup);
+ }
+ }
+}
\ No newline at end of file