Index: Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/IllustrationPointNodeConverter.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/IllustrationPointNodeConverter.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/IllustrationPoints/IllustrationPointNodeConverter.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,76 @@
+// 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 System.Collections.Generic;
+using System.Linq;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints;
+using HydraRingFaultTreeIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.FaultTreeIllustrationPoint;
+using HydraRingSubMechanismIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.SubMechanismIllustrationPoint;
+using HydraRingIllustrationPointTreeNode = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IllustrationPointTreeNode;
+
+namespace Ringtoets.Common.Service.IllustrationPoints
+{
+ ///
+ /// The converter that converts data into
+ /// data.
+ ///
+ public static class IllustrationPointNodeConverter
+ {
+ ///
+ /// Creates a new instance of based on the
+ /// information of .
+ ///
+ /// The
+ /// to base the to create on.
+ /// The created .
+ /// Thrown when
+ /// is null.
+ /// Thrown when
+ /// does not contain 0 or 2 children.
+ public static IllustrationPointNode Create(HydraRingIllustrationPointTreeNode hydraRingIllustrationPointTreeNode)
+ {
+ if (hydraRingIllustrationPointTreeNode == null)
+ {
+ throw new ArgumentNullException(nameof(hydraRingIllustrationPointTreeNode));
+ }
+
+ IllustrationPointBase data = CreateIllustrationPointTreeNodeData(hydraRingIllustrationPointTreeNode.Data);
+
+ var illustrationPointNode = new IllustrationPointNode(data);
+ illustrationPointNode.SetChildren(hydraRingIllustrationPointTreeNode.Children.Select(Create).ToArray());
+
+ return illustrationPointNode;
+ }
+
+ private static IllustrationPointBase CreateIllustrationPointTreeNodeData(IIllustrationPoint data)
+ {
+ var faultTreeIllustrationPoint = data as HydraRingFaultTreeIllustrationPoint;
+ var subMechanismIllustrationPoint = data as HydraRingSubMechanismIllustrationPoint;
+ return faultTreeIllustrationPoint != null
+ ? (IllustrationPointBase) FaultTreeIllustrationPointConverter.Create(faultTreeIllustrationPoint)
+ : (subMechanismIllustrationPoint != null
+ ? SubMechanismIllustrationPointConverter.Create(subMechanismIllustrationPoint)
+ : null);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.Service/Ringtoets.Common.Service.csproj
===================================================================
diff -u -r2e5f2b59e81cda48f3d7ee03afa4db88abc7b1a8 -rfc1d79e8dac002800fff0d485a63f4b400f8ab2b
--- Ringtoets/Common/src/Ringtoets.Common.Service/Ringtoets.Common.Service.csproj (.../Ringtoets.Common.Service.csproj) (revision 2e5f2b59e81cda48f3d7ee03afa4db88abc7b1a8)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/Ringtoets.Common.Service.csproj (.../Ringtoets.Common.Service.csproj) (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -51,6 +51,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/IllustrationPoints/IllustrationPointNodeConverterTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Service.Test/IllustrationPoints/IllustrationPointNodeConverterTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/IllustrationPoints/IllustrationPointNodeConverterTest.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,169 @@
+// 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 System.Linq;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Service.IllustrationPoints;
+using HydraRingIllustrationPointTreeNode = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IllustrationPointTreeNode;
+using HydraRingStochast = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.Stochast;
+using HydraRingFaultTreeIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.FaultTreeIllustrationPoint;
+using HydraRingSubMechanismIllustrationPoint = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.SubMechanismIllustrationPoint;
+using HydraRingSubMechanismIllustrationPointStochast = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.SubMechanismIllustrationPointStochast;
+using HydraRingIllustrationPointResult = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.IllustrationPointResult;
+using TestHydraRingSubMechanismIllustrationPoint = Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints.TestSubMechanismIllustrationPoint;
+using TestHydraRingFaultTreeIllustrationPoint = Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints.TestFaultTreeIllustrationPoint;
+using HydraRingCombinationType = Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints.CombinationType;
+
+namespace Ringtoets.Common.Service.Test.IllustrationPoints
+{
+ [TestFixture]
+ public class IllustrationPointNodeConverterTest
+ {
+ [Test]
+ public void Create_HydraRingIllustrationPointTreeNodeNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate test = () => IllustrationPointNodeConverter.Create(null);
+
+ // Assert
+ var exception = Assert.Throws(test);
+ Assert.AreEqual("hydraRingIllustrationPointTreeNode", exception.ParamName);
+ }
+
+ [Test]
+ public void Create_TreeNodeWithoutChildrenAndFaultTreeIllustrationPointData_ReturnIllustrationPointNode()
+ {
+ // Setup
+ var hydraRingStochast = new HydraRingStochast("stochast", 1, 2);
+ var hydraRingFaultTreeIllustrationPoint = new HydraRingFaultTreeIllustrationPoint("point", 3, new []
+ {
+ hydraRingStochast
+ }, HydraRingCombinationType.And);
+ var hydraRingIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(hydraRingFaultTreeIllustrationPoint);
+
+ // Call
+ IllustrationPointNode illustrationPointNode = IllustrationPointNodeConverter.Create(hydraRingIllustrationPointTreeNode);
+
+ // Assert
+ CollectionAssert.IsEmpty(illustrationPointNode.Children);
+ var faultTreeIllustrationPointTreeNodeData = (FaultTreeIllustrationPoint) illustrationPointNode.Data;
+
+ Assert.AreEqual(hydraRingFaultTreeIllustrationPoint.Name, faultTreeIllustrationPointTreeNodeData.Name);
+ Assert.AreEqual(hydraRingFaultTreeIllustrationPoint.Beta, faultTreeIllustrationPointTreeNodeData.Beta);
+ Assert.AreEqual((int) hydraRingFaultTreeIllustrationPoint.CombinationType, (int) faultTreeIllustrationPointTreeNodeData.CombinationType);
+ Assert.AreEqual(hydraRingFaultTreeIllustrationPoint.Stochasts.Count(), faultTreeIllustrationPointTreeNodeData.Stochasts.Count());
+ Stochast stochast = faultTreeIllustrationPointTreeNodeData.Stochasts.First();
+
+ Assert.AreEqual(hydraRingStochast.Name, stochast.Name);
+ Assert.AreEqual(hydraRingStochast.Duration, stochast.Duration);
+ Assert.AreEqual(hydraRingStochast.Alpha, stochast.Alpha);
+ }
+
+ [Test]
+ public void Create_TreeNodeWithoutChildrenAndSubMechanismIllustrationPointData_ReturnIllustrationPointNode()
+ {
+ var hydraRingStochast = new HydraRingSubMechanismIllustrationPointStochast("stochast", 1, 2, 3);
+ var hydraRingIllustrationPointResult = new HydraRingIllustrationPointResult("description", 4);
+ var hydraRingSubMechanismIllustrationPoint = new HydraRingSubMechanismIllustrationPoint(
+ "point",
+ new[]
+ {
+ hydraRingStochast
+ }, new[]
+ {
+ hydraRingIllustrationPointResult
+ }, 5);
+ var hydraRingIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(hydraRingSubMechanismIllustrationPoint);
+
+ // Call
+ IllustrationPointNode illustrationPointNode = IllustrationPointNodeConverter.Create(hydraRingIllustrationPointTreeNode);
+
+ // Assert
+ CollectionAssert.IsEmpty(illustrationPointNode.Children);
+ var subMechanismIllustrationPointTreeNodeData = (SubMechanismIllustrationPoint) illustrationPointNode.Data;
+
+ Assert.AreEqual(hydraRingSubMechanismIllustrationPoint.Name, subMechanismIllustrationPointTreeNodeData.Name);
+ Assert.AreEqual(hydraRingSubMechanismIllustrationPoint.Beta, subMechanismIllustrationPointTreeNodeData.Beta);
+ Assert.AreEqual(hydraRingSubMechanismIllustrationPoint.Stochasts.Count(), subMechanismIllustrationPointTreeNodeData.Stochasts.Count());
+ Assert.AreEqual(hydraRingSubMechanismIllustrationPoint.Results.Count(), subMechanismIllustrationPointTreeNodeData.IllustrationPointResults.Count());
+
+ SubMechanismIllustrationPointStochast stochast = subMechanismIllustrationPointTreeNodeData.Stochasts.First();
+ IllustrationPointResult result = subMechanismIllustrationPointTreeNodeData.IllustrationPointResults.First();
+
+ Assert.AreEqual(hydraRingStochast.Name, stochast.Name);
+ Assert.AreEqual(hydraRingStochast.Duration, stochast.Duration);
+ Assert.AreEqual(hydraRingStochast.Alpha, stochast.Alpha);
+ Assert.AreEqual(hydraRingStochast.Realization, stochast.Realization);
+
+ Assert.AreEqual(hydraRingIllustrationPointResult.Description, result.Description);
+ Assert.AreEqual(hydraRingIllustrationPointResult.Value, result.Value);
+ }
+
+ [Test]
+ public void Create_TreeNodeWithChildren_ReturnIllustrationPointNode()
+ {
+ // Setup
+ var hydraRingFaultTreeIllustrationPoint = new TestHydraRingFaultTreeIllustrationPoint();
+ var hydraRingIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(hydraRingFaultTreeIllustrationPoint);
+
+ var nestedHydraRingSubMechanismIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(new TestHydraRingSubMechanismIllustrationPoint());
+ var nestedHydraRingFaultTreeIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(new TestHydraRingFaultTreeIllustrationPoint());
+ nestedHydraRingFaultTreeIllustrationPointTreeNode.Children.Add(new HydraRingIllustrationPointTreeNode(new TestHydraRingSubMechanismIllustrationPoint()));
+ nestedHydraRingFaultTreeIllustrationPointTreeNode.Children.Add(new HydraRingIllustrationPointTreeNode(new TestHydraRingSubMechanismIllustrationPoint()));
+
+ hydraRingIllustrationPointTreeNode.Children.Add(nestedHydraRingSubMechanismIllustrationPointTreeNode);
+ hydraRingIllustrationPointTreeNode.Children.Add(nestedHydraRingFaultTreeIllustrationPointTreeNode);
+
+ // Call
+ IllustrationPointNode illustrationPointNode = IllustrationPointNodeConverter.Create(hydraRingIllustrationPointTreeNode);
+
+ // Assert
+ IllustrationPointNode[] children = illustrationPointNode.Children.ToArray();
+ Assert.AreEqual(2, children.Length);
+ Assert.IsInstanceOf(children[0].Data);
+ Assert.IsInstanceOf(children[1].Data);
+ CollectionAssert.IsEmpty(children[0].Children);
+ Assert.AreEqual(2, children[1].Children.Count());
+ }
+
+ [Test]
+ public void Create_TreeNodeWithInvalidNumberOfChildren_ThrowsArgumentException()
+ {
+ // Setup
+ var hydraRingFaultTreeIllustrationPoint = new TestHydraRingFaultTreeIllustrationPoint();
+ var hydraRingIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(hydraRingFaultTreeIllustrationPoint);
+
+ var nestedHydraRingSubMechanismIllustrationPointTreeNode = new HydraRingIllustrationPointTreeNode(new TestHydraRingSubMechanismIllustrationPoint());
+ hydraRingIllustrationPointTreeNode.Children.Add(nestedHydraRingSubMechanismIllustrationPointTreeNode);
+
+ // Call
+ TestDelegate test = () => IllustrationPointNodeConverter.Create(hydraRingIllustrationPointTreeNode);
+
+ // Assert
+ const string expectedMessage = "Een illustratiepunt node in de foutenboom moet 0 of 2 kind nodes hebben.";
+ var exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage);
+ Assert.AreEqual("children", exception.ParamName);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/Ringtoets.Common.Service.Test.csproj
===================================================================
diff -u -r2e5f2b59e81cda48f3d7ee03afa4db88abc7b1a8 -rfc1d79e8dac002800fff0d485a63f4b400f8ab2b
--- Ringtoets/Common/test/Ringtoets.Common.Service.Test/Ringtoets.Common.Service.Test.csproj (.../Ringtoets.Common.Service.Test.csproj) (revision 2e5f2b59e81cda48f3d7ee03afa4db88abc7b1a8)
+++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/Ringtoets.Common.Service.Test.csproj (.../Ringtoets.Common.Service.Test.csproj) (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -65,6 +65,7 @@
+
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,45 @@
+// 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 NUnit.Framework;
+using Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints;
+using Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints;
+
+namespace Ringtoets.HydraRing.Calculation.TestUtil.Test.IllustrationPoints
+{
+ [TestFixture]
+ public class TestFaultTreeIllustrationPointTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Call
+ var illustrationPoint = new TestFaultTreeIllustrationPoint();
+
+ // Assert
+ Assert.IsInstanceOf(illustrationPoint);
+ Assert.AreEqual("Illustration point", illustrationPoint.Name);
+ CollectionAssert.IsEmpty(illustrationPoint.Stochasts);
+ Assert.AreEqual(1, illustrationPoint.Beta);
+ Assert.AreEqual(CombinationType.And, illustrationPoint.CombinationType);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestSubMechanismIllustrationPointTest.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestSubMechanismIllustrationPointTest.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestSubMechanismIllustrationPointTest.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,45 @@
+// 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 NUnit.Framework;
+using Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints;
+using Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints;
+
+namespace Ringtoets.HydraRing.Calculation.TestUtil.Test.IllustrationPoints
+{
+ [TestFixture]
+ public class TestSubMechanismIllustrationPointTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Call
+ var illustrationPoint = new TestSubMechanismIllustrationPoint();
+
+ // Assert
+ Assert.IsInstanceOf(illustrationPoint);
+ Assert.AreEqual("Illustration point", illustrationPoint.Name);
+ CollectionAssert.IsEmpty(illustrationPoint.Stochasts);
+ CollectionAssert.IsEmpty(illustrationPoint.Results);
+ Assert.AreEqual(1, illustrationPoint.Beta);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/Ringtoets.HydraRing.Calculation.TestUtil.Test.csproj
===================================================================
diff -u -r342ecb50ef0e54c04002a2643689c6d0108518c7 -rfc1d79e8dac002800fff0d485a63f4b400f8ab2b
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/Ringtoets.HydraRing.Calculation.TestUtil.Test.csproj (.../Ringtoets.HydraRing.Calculation.TestUtil.Test.csproj) (revision 342ecb50ef0e54c04002a2643689c6d0108518c7)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/Ringtoets.HydraRing.Calculation.TestUtil.Test.csproj (.../Ringtoets.HydraRing.Calculation.TestUtil.Test.csproj) (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -53,7 +53,9 @@
Properties\GlobalAssembly.cs
+
+
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,37 @@
+// 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.Linq;
+using Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints;
+
+namespace Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints
+{
+ ///
+ /// Simple that can be used in tests.
+ ///
+ public class TestFaultTreeIllustrationPoint : FaultTreeIllustrationPoint
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public TestFaultTreeIllustrationPoint() : base("Illustration point", 1, Enumerable.Empty(), CombinationType.And) {}
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestSubMechanismIllustrationPoint.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestSubMechanismIllustrationPoint.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/IllustrationPoints/TestSubMechanismIllustrationPoint.cs (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -0,0 +1,39 @@
+// 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.Linq;
+using Ringtoets.HydraRing.Calculation.Data.Output.IllustrationPoints;
+
+namespace Ringtoets.HydraRing.Calculation.TestUtil.IllustrationPoints
+{
+ ///
+ /// Simple that can be used in tests.
+ ///
+ public class TestSubMechanismIllustrationPoint : SubMechanismIllustrationPoint
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public TestSubMechanismIllustrationPoint()
+ : base("Illustration point", Enumerable.Empty(),
+ Enumerable.Empty(), 1) {}
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/Ringtoets.HydraRing.Calculation.TestUtil.csproj
===================================================================
diff -u -r342ecb50ef0e54c04002a2643689c6d0108518c7 -rfc1d79e8dac002800fff0d485a63f4b400f8ab2b
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/Ringtoets.HydraRing.Calculation.TestUtil.csproj (.../Ringtoets.HydraRing.Calculation.TestUtil.csproj) (revision 342ecb50ef0e54c04002a2643689c6d0108518c7)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil/Ringtoets.HydraRing.Calculation.TestUtil.csproj (.../Ringtoets.HydraRing.Calculation.TestUtil.csproj) (revision fc1d79e8dac002800fff0d485a63f4b400f8ab2b)
@@ -55,7 +55,9 @@
+
+