Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStress.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStress.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStress.cs (revision 1563658643a853839ec2b7b9002a3dff75919ef2) @@ -0,0 +1,59 @@ +// 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.Base.Geometry; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input +{ + /// + /// A preconsolidation stress for which its properties have been adapted to perform a calculation. + /// + public class UpliftVanPreconsolidationStress + { + /// + /// Creates a new instance of . + /// + /// The coordinate of the stress. + /// The value of the stress. + /// Thrown when + /// is null. + public UpliftVanPreconsolidationStress(Point2D coordinate, double stressValue) + { + if (coordinate == null) + { + throw new ArgumentNullException(nameof(coordinate)); + } + Coordinate = coordinate; + StressValue = stressValue; + } + + /// + /// Gets the coordinate of the stress. + /// + public Point2D Coordinate { get; } + + /// + /// Gets the value of the stress. + /// + public double StressValue { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanSoilLayer.cs =================================================================== diff -u -rce7fdfb3ce781bfa892f2197d7fe693f3b033c3a -r1563658643a853839ec2b7b9002a3dff75919ef2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanSoilLayer.cs (.../UpliftVanSoilLayer.cs) (revision ce7fdfb3ce781bfa892f2197d7fe693f3b033c3a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanSoilLayer.cs (.../UpliftVanSoilLayer.cs) (revision 1563658643a853839ec2b7b9002a3dff75919ef2) @@ -33,6 +33,8 @@ /// /// Creates a new instance of . /// + /// The outer ring of the geometry of the soil layer. + /// The holes of the geometry of the soil layer. /// The object containing the values for /// the properties of the new . /// Thrown when Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj =================================================================== diff -u -rce7fdfb3ce781bfa892f2197d7fe693f3b033c3a -r1563658643a853839ec2b7b9002a3dff75919ef2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision ce7fdfb3ce781bfa892f2197d7fe693f3b033c3a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision 1563658643a853839ec2b7b9002a3dff75919ef2) @@ -43,6 +43,7 @@ Properties\GlobalAssembly.cs + Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStressTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStressTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPreconsolidationStressTest.cs (revision 1563658643a853839ec2b7b9002a3dff75919ef2) @@ -0,0 +1,59 @@ +// 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.Base.Geometry; +using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Test.Calculators.UpliftVan.Input +{ + [TestFixture] + public class UpliftVanPreconsolidationStressTest + { + [Test] + public void Constructor_CoordinateNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new UpliftVanPreconsolidationStress(null, 0); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("coordinate", exception.ParamName); + } + + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(11); + var coordinate = new Point2D(random.Next(), random.NextDouble()); + double stressValue = random.NextDouble(); + + // Call + var stress = new UpliftVanPreconsolidationStress(coordinate, stressValue); + + // Assert + Assert.AreSame(coordinate, stress.Coordinate); + Assert.AreEqual(stressValue, stress.StressValue); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj =================================================================== diff -u -rce7fdfb3ce781bfa892f2197d7fe693f3b033c3a -r1563658643a853839ec2b7b9002a3dff75919ef2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision ce7fdfb3ce781bfa892f2197d7fe693f3b033c3a) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision 1563658643a853839ec2b7b9002a3dff75919ef2) @@ -60,6 +60,7 @@ Properties\GlobalAssembly.cs +