Fisheye: Tag d132667b4f4ff81200737fe927232effa3271449 refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssemblyAssessment.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssessment.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssessment.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssessment.cs (revision d132667b4f4ff81200737fe927232effa3271449)
@@ -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.
+
+namespace Ringtoets.Common.Data.AssemblyTool
+{
+ ///
+ /// Assessment for failure mechanism section.
+ ///
+ public class FailureMechanismSectionAssessment
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The probability of the assembly assessment.
+ /// The group of the assembly assessment.
+ public FailureMechanismSectionAssessment(double probability, FailureMechanismSectionAssemblyCategoryGroup group)
+ {
+ Probability = probability;
+ Group = group;
+ }
+
+ ///
+ /// Gets the probability of the assessment.
+ ///
+ public double Probability { get; }
+
+ ///
+ /// Gets the group of the assessment.
+ ///
+ public FailureMechanismSectionAssemblyCategoryGroup Group { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj
===================================================================
diff -u -r2aa97c7e12bc6ede97cdc394d2713abbc95670a5 -rd132667b4f4ff81200737fe927232effa3271449
--- Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 2aa97c7e12bc6ede97cdc394d2713abbc95670a5)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision d132667b4f4ff81200737fe927232effa3271449)
@@ -20,7 +20,7 @@
-
+
Fisheye: Tag d132667b4f4ff81200737fe927232effa3271449 refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssemblyAssessmentTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssessmentTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssessmentTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssessmentTest.cs (revision d132667b4f4ff81200737fe927232effa3271449)
@@ -0,0 +1,48 @@
+// 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 Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.AssemblyTool;
+
+namespace Ringtoets.Common.Data.Test.AssemblyTool
+{
+ [TestFixture]
+ public class FailureMechanismSectionAssessmentTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ double probability = random.NextDouble();
+ var group = random.NextEnumValue();
+
+ // Call
+ var assessment = new FailureMechanismSectionAssessment(probability, group);
+
+ // Assert
+ Assert.AreEqual(probability, assessment.Probability);
+ Assert.AreEqual(group, assessment.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj
===================================================================
diff -u -r2aa97c7e12bc6ede97cdc394d2713abbc95670a5 -rd132667b4f4ff81200737fe927232effa3271449
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 2aa97c7e12bc6ede97cdc394d2713abbc95670a5)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision d132667b4f4ff81200737fe927232effa3271449)
@@ -24,7 +24,7 @@
-
+