Index: Ringtoets.sln
===================================================================
diff -u -r999f55a8115ed9277efd65972d64a70d30669904 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets.sln (.../Ringtoets.sln) (revision 999f55a8115ed9277efd65972d64a70d30669904)
+++ Ringtoets.sln (.../Ringtoets.sln) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -1776,6 +1776,16 @@
{C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.MacroStabilityInwards.Primitives.TestUtil", "Ringtoets\MacroStabilityInwards\test\Ringtoets.MacroStabilityInwards.Primitives.TestUtil\Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj", "{1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}"
+ ProjectSection(ProjectDependencies) = postProject
+ {C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test", "Ringtoets\MacroStabilityInwards\test\Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test\Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj", "{C80AD710-0F84-40CE-9567-10CBE332E589}"
+ ProjectSection(ProjectDependencies) = postProject
+ {C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
CreateInstaller|x86 = CreateInstaller|x86
@@ -4482,6 +4492,26 @@
{9FB4BF13-EB15-4676-A3D4-C30DFC33631E}.Release|x86.Build.0 = Release|x86
{9FB4BF13-EB15-4676-A3D4-C30DFC33631E}.ReleaseForCodeCoverage|x86.ActiveCfg = ReleaseForCodeCoverage|x86
{9FB4BF13-EB15-4676-A3D4-C30DFC33631E}.ReleaseForCodeCoverage|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.CreateInstaller|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.CreateInstaller|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.CreateInstallerWithDemoProject|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.CreateInstallerWithDemoProject|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.Debug|x86.ActiveCfg = Debug|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.Debug|x86.Build.0 = Debug|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.Release|x86.ActiveCfg = Release|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.Release|x86.Build.0 = Release|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.ReleaseForCodeCoverage|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}.ReleaseForCodeCoverage|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.CreateInstaller|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.CreateInstaller|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.CreateInstallerWithDemoProject|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.CreateInstallerWithDemoProject|x86.Build.0 = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.Debug|x86.ActiveCfg = Debug|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.Debug|x86.Build.0 = Debug|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.Release|x86.ActiveCfg = Release|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.Release|x86.Build.0 = Release|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.ReleaseForCodeCoverage|x86.ActiveCfg = ReleaseForCodeCoverage|x86
+ {C80AD710-0F84-40CE-9567-10CBE332E589}.ReleaseForCodeCoverage|x86.Build.0 = ReleaseForCodeCoverage|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -4862,6 +4892,8 @@
{F95B449C-02CC-409B-83EA-FF16D0D7CBDB} = {A39CC244-FBB2-4221-82B9-92CC837EF1DC}
{D0887613-858E-4EED-9320-8C5A09170761} = {FDBC8F09-1273-4A3D-9A94-1619EDD811C4}
{9FB4BF13-EB15-4676-A3D4-C30DFC33631E} = {A39CC244-FBB2-4221-82B9-92CC837EF1DC}
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF} = {A39CC244-FBB2-4221-82B9-92CC837EF1DC}
+ {C80AD710-0F84-40CE-9567-10CBE332E589} = {A39CC244-FBB2-4221-82B9-92CC837EF1DC}
EndGlobalSection
GlobalSection(TextTemplating) = postSolution
TextTemplating = 1
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/DerivedMacroStabilityInwardsInput.cs
===================================================================
diff -u -r7438751456088ede76933c01627857c4e11681c9 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/DerivedMacroStabilityInwardsInput.cs (.../DerivedMacroStabilityInwardsInput.cs) (revision 7438751456088ede76933c01627857c4e11681c9)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/DerivedMacroStabilityInwardsInput.cs (.../DerivedMacroStabilityInwardsInput.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -21,6 +21,7 @@
using System;
using System.Linq;
+using Ringtoets.MacroStabilityInwards.Primitives;
namespace Ringtoets.MacroStabilityInwards.Data
{
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsPhreaticLine.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsWaternet.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsWaternetLine.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj
===================================================================
diff -u -r7438751456088ede76933c01627857c4e11681c9 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 7438751456088ede76933c01627857c4e11681c9)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -53,9 +53,6 @@
-
-
-
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsPhreaticLineProperties.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsPhreaticLineProperties.cs (.../MacroStabilityInwardsPhreaticLineProperties.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsPhreaticLineProperties.cs (.../MacroStabilityInwardsPhreaticLineProperties.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -27,8 +27,8 @@
using Core.Common.Gui.Converters;
using Core.Common.Gui.PropertyBag;
using Core.Common.Utils.Attributes;
-using Ringtoets.MacroStabilityInwards.Data;
using Ringtoets.MacroStabilityInwards.Forms.Properties;
+using Ringtoets.MacroStabilityInwards.Primitives;
namespace Ringtoets.MacroStabilityInwards.Forms.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetLineProperties.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetLineProperties.cs (.../MacroStabilityInwardsWaternetLineProperties.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetLineProperties.cs (.../MacroStabilityInwardsWaternetLineProperties.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -27,8 +27,8 @@
using Core.Common.Gui.Converters;
using Core.Common.Gui.PropertyBag;
using Core.Common.Utils.Attributes;
-using Ringtoets.MacroStabilityInwards.Data;
using Ringtoets.MacroStabilityInwards.Forms.Properties;
+using Ringtoets.MacroStabilityInwards.Primitives;
namespace Ringtoets.MacroStabilityInwards.Forms.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetProperties.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetProperties.cs (.../MacroStabilityInwardsWaternetProperties.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaternetProperties.cs (.../MacroStabilityInwardsWaternetProperties.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -26,8 +26,8 @@
using Core.Common.Gui.Converters;
using Core.Common.Gui.PropertyBag;
using Core.Common.Utils.Attributes;
-using Ringtoets.MacroStabilityInwards.Data;
using Ringtoets.MacroStabilityInwards.Forms.Properties;
+using Ringtoets.MacroStabilityInwards.Primitives;
namespace Ringtoets.MacroStabilityInwards.Forms.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsPhreaticLine.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsPhreaticLine.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsPhreaticLine.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -0,0 +1,66 @@
+// 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 Core.Common.Base.Geometry;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives
+{
+ ///
+ /// The phreatic line created by the Waternet calculator in the derived
+ /// macro stability inwards calculation input.
+ ///
+ public class MacroStabilityInwardsPhreaticLine
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The name of the phreatic line.
+ /// The geometry points of the phreatic line.
+ /// Thrown when any input argument
+ /// is null.
+ public MacroStabilityInwardsPhreaticLine(string name, IEnumerable geometry)
+ {
+ if (name == null)
+ {
+ throw new ArgumentNullException(nameof(name));
+ }
+ if (geometry == null)
+ {
+ throw new ArgumentNullException(nameof(geometry));
+ }
+
+ Name = name;
+ Geometry = geometry;
+ }
+
+ ///
+ /// Gets the name of the phreatic line.
+ ///
+ public string Name { get; }
+
+ ///
+ /// Gets the geometry points of the phreatic line.
+ ///
+ public IEnumerable Geometry { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternet.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternet.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternet.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -0,0 +1,66 @@
+// 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;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives
+{
+ ///
+ /// The waternet created by the Waternet calculator in the derived
+ /// macro stability inwards calculation input.
+ ///
+ public class MacroStabilityInwardsWaternet
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The collection of
+ /// The collection of
+ /// Thrown when any input argument
+ /// is null.
+ public MacroStabilityInwardsWaternet(IEnumerable phreaticLines,
+ IEnumerable waternetLines)
+ {
+ if (phreaticLines == null)
+ {
+ throw new ArgumentNullException(nameof(phreaticLines));
+ }
+ if (waternetLines == null)
+ {
+ throw new ArgumentNullException(nameof(waternetLines));
+ }
+
+ PhreaticLines = phreaticLines;
+ WaternetLines = waternetLines;
+ }
+
+ ///
+ /// Gets the collection of phreatic lines.
+ ///
+ public IEnumerable PhreaticLines { get; }
+
+ ///
+ /// Gets the collection of waternet lines.
+ ///
+ public IEnumerable WaternetLines { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternetLine.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternetLine.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsWaternetLine.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -0,0 +1,77 @@
+// 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 Core.Common.Base.Geometry;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives
+{
+ ///
+ /// The waternet line created by the Waternet calculator in the derived
+ /// macro stability inwards calculation input.
+ ///
+ public class MacroStabilityInwardsWaternetLine
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The name of the waternet line.
+ /// The geometry points of the waternet line.
+ /// The associated phreatic line.
+ /// Thrown when any input argument
+ /// is null.
+ public MacroStabilityInwardsWaternetLine(string name, IEnumerable geometry, MacroStabilityInwardsPhreaticLine phreaticLine)
+ {
+ if (name == null)
+ {
+ throw new ArgumentNullException(nameof(name));
+ }
+ if (geometry == null)
+ {
+ throw new ArgumentNullException(nameof(geometry));
+ }
+ if (phreaticLine == null)
+ {
+ throw new ArgumentNullException(nameof(phreaticLine));
+ }
+
+ Name = name;
+ Geometry = geometry;
+ PhreaticLine = phreaticLine;
+ }
+
+ ///
+ /// Gets the name of the waternet line.
+ ///
+ public string Name { get; }
+
+ ///
+ /// Gets the geometry points of the waternet line.
+ ///
+ public IEnumerable Geometry { get; }
+
+ ///
+ /// Gets the associated phreatic line.
+ ///
+ public MacroStabilityInwardsPhreaticLine PhreaticLine { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj
===================================================================
diff -u -r59adecfc7f82ab8277440ecae147453f5cbddbbf -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision 59adecfc7f82ab8277440ecae147453f5cbddbbf)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -42,6 +42,9 @@
Properties\GlobalAssembly.cs
+
+
+ Resources.resx
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsPhreaticLineTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsWaternetLineTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsWaternetTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj
===================================================================
diff -u -r7438751456088ede76933c01627857c4e11681c9 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.Test.csproj) (revision 7438751456088ede76933c01627857c4e11681c9)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.Test.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -66,9 +66,6 @@
-
-
-
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test.csproj
===================================================================
diff -u -r7438751456088ede76933c01627857c4e11681c9 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.TestUtil.Test.csproj) (revision 7438751456088ede76933c01627857c4e11681c9)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.TestUtil.Test.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -64,8 +64,6 @@
-
-
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/TestMacroStabilityInwardsPhreaticLineTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/TestMacroStabilityInwardsWaternetLineTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/Ringtoets.MacroStabilityInwards.Data.TestUtil.csproj
===================================================================
diff -u -r7438751456088ede76933c01627857c4e11681c9 -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/Ringtoets.MacroStabilityInwards.Data.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Data.TestUtil.csproj) (revision 7438751456088ede76933c01627857c4e11681c9)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/Ringtoets.MacroStabilityInwards.Data.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Data.TestUtil.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -66,8 +66,6 @@
-
-
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/TestMacroStabilityInwardsPhreaticLine.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 14c118039f313ea66787d8065daad0aa783b731a refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/TestMacroStabilityInwardsWaternetLine.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsPhreaticLinePropertiesTest.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsPhreaticLinePropertiesTest.cs (.../MacroStabilityInwardsPhreaticLinePropertiesTest.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsPhreaticLinePropertiesTest.cs (.../MacroStabilityInwardsPhreaticLinePropertiesTest.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -27,9 +27,9 @@
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
-using Ringtoets.MacroStabilityInwards.Data;
-using Ringtoets.MacroStabilityInwards.Data.TestUtil;
using Ringtoets.MacroStabilityInwards.Forms.PropertyClasses;
+using Ringtoets.MacroStabilityInwards.Primitives;
+using Ringtoets.MacroStabilityInwards.Primitives.TestUtil;
namespace Ringtoets.MacroStabilityInwards.Forms.Test.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressLinesPropertiesTest.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressLinesPropertiesTest.cs (.../MacroStabilityInwardsWaterStressLinesPropertiesTest.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressLinesPropertiesTest.cs (.../MacroStabilityInwardsWaterStressLinesPropertiesTest.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -26,9 +26,9 @@
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
-using Ringtoets.MacroStabilityInwards.Data;
-using Ringtoets.MacroStabilityInwards.Data.TestUtil;
using Ringtoets.MacroStabilityInwards.Forms.PropertyClasses;
+using Ringtoets.MacroStabilityInwards.Primitives;
+using Ringtoets.MacroStabilityInwards.Primitives.TestUtil;
namespace Ringtoets.MacroStabilityInwards.Forms.Test.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaternetLinePropertiesTest.cs
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaternetLinePropertiesTest.cs (.../MacroStabilityInwardsWaternetLinePropertiesTest.cs) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaternetLinePropertiesTest.cs (.../MacroStabilityInwardsWaternetLinePropertiesTest.cs) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -27,9 +27,9 @@
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
-using Ringtoets.MacroStabilityInwards.Data;
-using Ringtoets.MacroStabilityInwards.Data.TestUtil;
using Ringtoets.MacroStabilityInwards.Forms.PropertyClasses;
+using Ringtoets.MacroStabilityInwards.Primitives;
+using Ringtoets.MacroStabilityInwards.Primitives.TestUtil;
namespace Ringtoets.MacroStabilityInwards.Forms.Test.PropertyClasses
{
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Ringtoets.MacroStabilityInwards.Forms.Test.csproj
===================================================================
diff -u -r66af8add6f7cc445cbb5347af02ee69235ec63be -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Ringtoets.MacroStabilityInwards.Forms.Test.csproj (.../Ringtoets.MacroStabilityInwards.Forms.Test.csproj) (revision 66af8add6f7cc445cbb5347af02ee69235ec63be)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Ringtoets.MacroStabilityInwards.Forms.Test.csproj (.../Ringtoets.MacroStabilityInwards.Forms.Test.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -199,6 +199,10 @@
{2b78cf04-4785-4f27-a6e5-45bddbb7bf04}Ringtoets.MacroStabilityInwards.Data.TestUtil
+
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}
+ Ringtoets.MacroStabilityInwards.Primitives.TestUtil
+
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsPhreaticLineTest.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsPhreaticLineTest.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsPhreaticLineTest.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -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 Core.Common.Base.Geometry;
+using NUnit.Framework;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives.Test
+{
+ public class MacroStabilityInwardsPhreaticLineTest
+ {
+ [Test]
+ public void Constructor_NameNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsPhreaticLine(null, new List());
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("name", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_GeometryNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsPhreaticLine("name", null);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("geometry", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ const string name = "";
+ var geometry = new List
+ {
+ new Point2D(0.0, 0.0),
+ new Point2D(15.0, 15.0)
+ };
+
+ // Call
+ var phreaticLine = new MacroStabilityInwardsPhreaticLine(name, geometry);
+
+ // Assert
+ Assert.AreEqual(name, phreaticLine.Name);
+ CollectionAssert.AreEqual(new List
+ {
+ new Point2D(0.0, 0.0),
+ new Point2D(15.0, 15.0)
+ }, phreaticLine.Geometry);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetLineTest.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetLineTest.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetLineTest.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -0,0 +1,94 @@
+// 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 Core.Common.Base.Geometry;
+using NUnit.Framework;
+using Ringtoets.MacroStabilityInwards.Primitives.TestUtil;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives.Test
+{
+ public class MacroStabilityInwardsWaternetLineTest
+ {
+ [Test]
+ public void Constructor_NameNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsWaternetLine(null, new List(), new TestMacroStabilityInwardsPhreaticLine());
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("name", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_GeometryNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsWaternetLine("name", null, new TestMacroStabilityInwardsPhreaticLine());
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("geometry", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_PhreaticLineNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsWaternetLine("name", new List(), null);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("phreaticLine", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ const string waternetLineName = "";
+ const string phreaticLineName = "PL1";
+ var geometry = new List
+ {
+ new Point2D(0.0, 0.0),
+ new Point2D(15.0, 15.0)
+ };
+
+ // Call
+ var waternetLine = new MacroStabilityInwardsWaternetLine(waternetLineName,
+ geometry,
+ new MacroStabilityInwardsPhreaticLine(phreaticLineName, Enumerable.Empty()));
+
+ // Assert
+ Assert.AreEqual(waternetLineName, waternetLine.Name);
+ CollectionAssert.AreEqual(new List
+ {
+ new Point2D(0.0, 0.0),
+ new Point2D(15.0, 15.0)
+ }, waternetLine.Geometry);
+ Assert.AreEqual(phreaticLineName, waternetLine.PhreaticLine.Name);
+ CollectionAssert.IsEmpty(waternetLine.PhreaticLine.Geometry);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetTest.cs
===================================================================
diff -u
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetTest.cs (revision 0)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsWaternetTest.cs (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -0,0 +1,74 @@
+// 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.Base.Geometry;
+using NUnit.Framework;
+
+namespace Ringtoets.MacroStabilityInwards.Primitives.Test
+{
+ public class MacroStabilityInwardsWaternetTest
+ {
+ [Test]
+ public void Constructor_PhreaticLinesNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsWaternet(null, Enumerable.Empty());
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("phreaticLines", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_WaternetLinesNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new MacroStabilityInwardsWaternet(Enumerable.Empty(), null);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("waternetLines", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var phreaticLine = new MacroStabilityInwardsPhreaticLine("Phreatic Line", Enumerable.Empty());
+ var waternetLine = new MacroStabilityInwardsWaternetLine("Waternet Line", Enumerable.Empty(), phreaticLine);
+
+ // Call
+ var waternet = new MacroStabilityInwardsWaternet(new[]
+ {
+ phreaticLine
+ }, new[]
+ {
+ waternetLine
+ });
+
+ // Assert
+ Assert.AreSame(phreaticLine, waternet.PhreaticLines.Single());
+ Assert.AreSame(waternetLine, waternet.WaternetLines.Single());
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj
===================================================================
diff -u -r59adecfc7f82ab8277440ecae147453f5cbddbbf -r14c118039f313ea66787d8065daad0aa783b731a
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.Test.csproj) (revision 59adecfc7f82ab8277440ecae147453f5cbddbbf)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.Test.csproj) (revision 14c118039f313ea66787d8065daad0aa783b731a)
@@ -53,6 +53,9 @@
Properties\GlobalAssembly.cs
+
+
+
@@ -83,6 +86,10 @@
{E9B39743-2DC9-4922-9E0F-6BA3E0E54189}Ringtoets.MacroStabilityInwards.Primitives
+
+ {1DF4EE8D-0EF5-4FCC-A40E-CB8B82080FDF}
+ Ringtoets.MacroStabilityInwards.Primitives.TestUtil
+