Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanCalculatorInput.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanCalculatorInput.cs (.../UpliftVanCalculatorInput.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanCalculatorInput.cs (.../UpliftVanCalculatorInput.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -46,14 +46,11 @@ SurfaceLine = properties.SurfaceLine; SoilProfile = properties.SoilProfile; DrainageConstruction = properties.DrainageConstruction; + PhreaticLineOffsets = properties.PhreaticLineOffsets; WaterLevelRiverAverage = properties.WaterLevelRiverAverage; WaterLevelPolder = properties.WaterLevelPolder; MinimumLevelPhreaticLineAtDikeTopRiver = properties.MinimumLevelPhreaticLineAtDikeTopRiver; MinimumLevelPhreaticLineAtDikeTopPolder = properties.MinimumLevelPhreaticLineAtDikeTopPolder; - PhreaticLineOffsetBelowDikeTopAtRiver = properties.PhreaticLineOffsetBelowDikeTopAtRiver; - PhreaticLineOffsetBelowDikeTopAtPolder = properties.PhreaticLineOffsetBelowDikeTopAtPolder; - PhreaticLineOffsetBelowShoulderBaseInside = properties.PhreaticLineOffsetBelowShoulderBaseInside; - PhreaticLineOffsetBelowDikeToeAtPolder = properties.PhreaticLineOffsetBelowDikeToeAtPolder; LeakageLengthOutwardsPhreaticLine3 = properties.LeakageLengthOutwardsPhreaticLine3; LeakageLengthInwardsPhreaticLine3 = properties.LeakageLengthInwardsPhreaticLine3; LeakageLengthOutwardsPhreaticLine4 = properties.LeakageLengthOutwardsPhreaticLine4; @@ -62,7 +59,6 @@ PiezometricHeadPhreaticLine2Inwards = properties.PiezometricHeadPhreaticLine2Inwards; PenetrationLength = properties.PenetrationLength; AdjustPhreaticLine3And4ForUplift = properties.AdjustPhreaticLine3And4ForUplift; - UseDefaultOffsets = properties.UseDefaultOffsets; DikeSoilScenario = properties.DikeSoilScenario; MoveGrid = properties.MoveGrid; MaximumSliceWidth = properties.MaximumSliceWidth; @@ -93,10 +89,6 @@ WaterLevelPolder = double.NaN; MinimumLevelPhreaticLineAtDikeTopRiver = double.NaN; MinimumLevelPhreaticLineAtDikeTopPolder = double.NaN; - PhreaticLineOffsetBelowDikeTopAtRiver = double.NaN; - PhreaticLineOffsetBelowDikeTopAtPolder = double.NaN; - PhreaticLineOffsetBelowShoulderBaseInside = double.NaN; - PhreaticLineOffsetBelowDikeToeAtPolder = double.NaN; LeakageLengthOutwardsPhreaticLine3 = double.NaN; LeakageLengthInwardsPhreaticLine3 = double.NaN; LeakageLengthOutwardsPhreaticLine4 = double.NaN; @@ -136,6 +128,11 @@ public UpliftVanDrainageConstruction DrainageConstruction { internal get; set; } /// + /// Gets or sets the phreatic line offsets. + /// + public UpliftVanPhreaticLineOffsets PhreaticLineOffsets { internal get; set; } + + /// /// Gets or sets the dike soil scenario. /// public MacroStabilityInwardsDikeSoilScenario DikeSoilScenario { internal get; set; } @@ -165,35 +162,6 @@ public double MinimumLevelPhreaticLineAtDikeTopPolder { internal get; set; } /// - /// Gets or sets whether the default offsets should be used. - /// - public bool UseDefaultOffsets { internal get; set; } - - /// - /// Gets or sets the offset of the phreatic line below dike top at river. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeTopAtRiver { internal get; set; } - - /// - /// Gets or sets the offset of the phreatic line below dike top at polder. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeTopAtPolder { internal get; set; } - - /// - /// Gets or sets the offset of the phreatic line below shoulder base inside. - /// [m] - /// - public double PhreaticLineOffsetBelowShoulderBaseInside { internal get; set; } - - /// - /// Gets or sets the offset of the phreatic line below dike toe at polder. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeToeAtPolder { internal get; set; } - - /// /// Gets or sets whether phreatic line 3 and 4 should be adjusted for Uplift. /// public bool AdjustPhreaticLine3And4ForUplift { internal get; set; } @@ -332,6 +300,11 @@ public UpliftVanDrainageConstruction DrainageConstruction { get; } /// + /// Gets the phreatic line offsets. + /// + public UpliftVanPhreaticLineOffsets PhreaticLineOffsets { get; } + + /// /// Gets the dike soil scenario. /// public MacroStabilityInwardsDikeSoilScenario DikeSoilScenario { get; } @@ -361,35 +334,6 @@ public double MinimumLevelPhreaticLineAtDikeTopPolder { get; } /// - /// Gets whether the default offsets should be used. - /// - public bool UseDefaultOffsets { get; } - - /// - /// Gets the offset of the phreatic line below dike top at river. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeTopAtRiver { get; } - - /// - /// Gets the offset of the phreatic line below dike top at polder. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeTopAtPolder { get; } - - /// - /// Gets the offset of the phreatic line below shoulder base inside. - /// [m] - /// - public double PhreaticLineOffsetBelowShoulderBaseInside { get; } - - /// - /// Gets the offset of the phreatic line below dike toe at polder. - /// [m] - /// - public double PhreaticLineOffsetBelowDikeToeAtPolder { get; } - - /// /// Gets whether phreatic line 3 and 4 should be adjusted for Uplift. /// public bool AdjustPhreaticLine3And4ForUplift { get; } Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsets.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsets.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsets.cs (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -0,0 +1,91 @@ +// 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.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input +{ + /// + /// Phreatic line offset values that are used to perform a calculation. + /// + public class UpliftVanPhreaticLineOffsets + { + /// + /// Creates a new instance of . + /// + /// is set to true; , + /// , + /// and are set to . + public UpliftVanPhreaticLineOffsets() + { + UseDefaults = true; + BelowDikeTopAtRiver = double.NaN; + BelowDikeTopAtPolder = double.NaN; + BelowDikeToeAtPolder = double.NaN; + BelowShoulderBaseInside = double.NaN; + } + + /// + /// Creates a new instance of . + /// + /// The offset of the phreatic line below dike top at river. + /// The offset of the phreatic line below dike top at polder. + /// The offset of the phreatic line below dike toe at polder. + /// The offset of the phreatic line below shoulder base inside. + /// is set to false. + public UpliftVanPhreaticLineOffsets(double belowDikeTopAtRiver, double belowDikeTopAtPolder, + double belowDikeToeAtPolder, double belowShoulderBaseInside) + { + UseDefaults = false; + BelowDikeTopAtRiver = belowDikeTopAtRiver; + BelowDikeTopAtPolder = belowDikeTopAtPolder; + BelowDikeToeAtPolder = belowDikeToeAtPolder; + BelowShoulderBaseInside = belowShoulderBaseInside; + } + + /// + /// Gets whether the default offsets should be used. + /// + public bool UseDefaults { get; } + + /// + /// Gets the offset of the phreatic line below dike top at river. + /// [m] + /// + public double BelowDikeTopAtRiver { get; } + + /// + /// Gets the offset of the phreatic line below dike top at polder. + /// [m] + /// + public double BelowDikeTopAtPolder { get; } + + /// + /// Gets the offset of the phreatic line below dike toe at polder. + /// [m] + /// + public double BelowDikeToeAtPolder { get; } + + /// + /// Gets the offset of the phreatic line below shoulder base inside. + /// [m] + /// + public double BelowShoulderBaseInside { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Creators/Input/StabilityLocationCreator.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Creators/Input/StabilityLocationCreator.cs (.../StabilityLocationCreator.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Creators/Input/StabilityLocationCreator.cs (.../StabilityLocationCreator.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -65,11 +65,11 @@ ZCoordMiddleDrainageConstruction = input.DrainageConstruction.ZCoordinate, MinimumLevelPhreaticLineAtDikeTopRiver = input.MinimumLevelPhreaticLineAtDikeTopRiver, MinimumLevelPhreaticLineAtDikeTopPolder = input.MinimumLevelPhreaticLineAtDikeTopPolder, - UseDefaultOffsets = input.UseDefaultOffsets, - PlLineOffsetBelowPointBRingtoetsWti2017 = input.PhreaticLineOffsetBelowDikeTopAtRiver, - PlLineOffsetBelowDikeTopAtPolder = input.PhreaticLineOffsetBelowDikeTopAtPolder, - PlLineOffsetBelowShoulderBaseInside = input.PhreaticLineOffsetBelowShoulderBaseInside, - PlLineOffsetBelowDikeToeAtPolder = input.PhreaticLineOffsetBelowDikeToeAtPolder, + UseDefaultOffsets = input.PhreaticLineOffsets.UseDefaults, + PlLineOffsetBelowPointBRingtoetsWti2017 = input.PhreaticLineOffsets.BelowDikeTopAtRiver, + PlLineOffsetBelowDikeTopAtPolder = input.PhreaticLineOffsets.BelowDikeTopAtPolder, + PlLineOffsetBelowShoulderBaseInside = input.PhreaticLineOffsets.BelowShoulderBaseInside, + PlLineOffsetBelowDikeToeAtPolder = input.PhreaticLineOffsets.BelowDikeToeAtPolder, AdjustPl3And4ForUplift = input.AdjustPhreaticLine3And4ForUplift, LeakageLengthOutwardsPl3 = input.LeakageLengthOutwardsPhreaticLine3, LeakageLengthInwardsPl3 = input.LeakageLengthInwardsPhreaticLine3, Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -45,6 +45,7 @@ Properties\GlobalAssembly.cs + Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/UpliftVanPhreaticLineOffsetsConverter.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/UpliftVanPhreaticLineOffsetsConverter.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Converters/UpliftVanPhreaticLineOffsetsConverter.cs (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -0,0 +1,57 @@ +// 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 Ringtoets.MacroStabilityInwards.Data; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; + +namespace Ringtoets.MacroStabilityInwards.Service.Converters +{ + /// + /// Converter to convert phreatic line offsets properties + /// into . + /// + internal static class UpliftVanPhreaticLineOffsetsConverter + { + /// + /// Converts phreatic line offsets properties + /// into . + /// + /// The input to get the properties from. + /// The converted . + /// Thrown when + /// is null. + public static UpliftVanPhreaticLineOffsets Convert(MacroStabilityInwardsInput input) + { + if (input == null) + { + throw new ArgumentNullException(nameof(input)); + } + + return input.UseDefaultOffsets + ? new UpliftVanPhreaticLineOffsets() + : new UpliftVanPhreaticLineOffsets(input.PhreaticLineOffsetBelowDikeTopAtRiver, + input.PhreaticLineOffsetBelowDikeTopAtPolder, + input.PhreaticLineOffsetBelowDikeToeAtPolder, + input.PhreaticLineOffsetBelowShoulderBaseInside); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsCalculationService.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsCalculationService.cs (.../MacroStabilityInwardsCalculationService.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/MacroStabilityInwardsCalculationService.cs (.../MacroStabilityInwardsCalculationService.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -191,16 +191,12 @@ SurfaceLine = inputParameters.SurfaceLine, SoilProfile = UpliftVanSoilProfileConverter.Convert(inputParameters.SoilProfileUnderSurfaceLine), DrainageConstruction = UpliftVanDrainageConstructionConverter.Convert(inputParameters), + PhreaticLineOffsets = UpliftVanPhreaticLineOffsetsConverter.Convert(inputParameters), DikeSoilScenario = inputParameters.DikeSoilScenario, WaterLevelRiverAverage = inputParameters.WaterLevelRiverAverage, WaterLevelPolder = inputParameters.WaterLevelPolder, MinimumLevelPhreaticLineAtDikeTopRiver = inputParameters.MinimumLevelPhreaticLineAtDikeTopRiver, MinimumLevelPhreaticLineAtDikeTopPolder = inputParameters.MinimumLevelPhreaticLineAtDikeTopPolder, - UseDefaultOffsets = inputParameters.UseDefaultOffsets, - PhreaticLineOffsetBelowDikeTopAtRiver = !inputParameters.UseDefaultOffsets ? inputParameters.PhreaticLineOffsetBelowDikeTopAtRiver : double.NaN, - PhreaticLineOffsetBelowDikeTopAtPolder = !inputParameters.UseDefaultOffsets ? inputParameters.PhreaticLineOffsetBelowDikeTopAtPolder : double.NaN, - PhreaticLineOffsetBelowShoulderBaseInside = !inputParameters.UseDefaultOffsets ? inputParameters.PhreaticLineOffsetBelowShoulderBaseInside : double.NaN, - PhreaticLineOffsetBelowDikeToeAtPolder = !inputParameters.UseDefaultOffsets ? inputParameters.PhreaticLineOffsetBelowDikeToeAtPolder : double.NaN, LeakageLengthOutwardsPhreaticLine3 = inputParameters.LeakageLengthOutwardsPhreaticLine3, LeakageLengthInwardsPhreaticLine3 = inputParameters.LeakageLengthInwardsPhreaticLine3, LeakageLengthOutwardsPhreaticLine4 = inputParameters.LeakageLengthOutwardsPhreaticLine4, Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Ringtoets.MacroStabilityInwards.Service.csproj =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Ringtoets.MacroStabilityInwards.Service.csproj (.../Ringtoets.MacroStabilityInwards.Service.csproj) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Service/Ringtoets.MacroStabilityInwards.Service.csproj (.../Ringtoets.MacroStabilityInwards.Service.csproj) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -42,6 +42,7 @@ + Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanCalculatorInputTest.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanCalculatorInputTest.cs (.../UpliftVanCalculatorInputTest.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanCalculatorInputTest.cs (.../UpliftVanCalculatorInputTest.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -57,23 +57,19 @@ }, new UpliftVanPreconsolidationStress[0]); var drainageConstruction = new UpliftVanDrainageConstruction(); + var phreaticLineOffsets = new UpliftVanPhreaticLineOffsets(); double waterLevelRiverAverage = random.Next(); double waterLevelPolder = random.Next(); double minimumLevelPhreaticLineAtDikeTopRiver = random.Next(); double minimumLevelPhreaticLineAtDikeTopPolder = random.Next(); - double phreaticLineOffsetBelowDikeTopAtRiver = random.Next(); - double phreaticLineOffsetBelowDikeTopAtPolder = random.Next(); - double phreaticLineOffsetBelowShoulderBaseInside = random.Next(); - double phreaticLineOffsetBelowDikeToeAtPolder = random.Next(); double leakageLengthOutwardsPhreaticLine3 = random.Next(); double leakageLengthInwardsPhreaticLine3 = random.Next(); double leakageLengthOutwardsPhreaticLine4 = random.Next(); double leakageLengthInwardsPhreaticLine4 = random.Next(); double piezometricHeadPhreaticLine2Outwards = random.Next(); double piezometricHeadPhreaticLine2Inwards = random.Next(); double penetrationLength = random.Next(); - bool useDefaultOffsets = random.NextBoolean(); bool adjustPhreaticLine3And4ForUplift = random.NextBoolean(); var dikeSoilScenario = random.NextEnumValue(); bool moveGrid = random.NextBoolean(); @@ -97,22 +93,18 @@ SurfaceLine = surfaceLine, SoilProfile = soilProfile, DrainageConstruction = drainageConstruction, + PhreaticLineOffsets = phreaticLineOffsets, WaterLevelRiverAverage = waterLevelRiverAverage, WaterLevelPolder = waterLevelPolder, MinimumLevelPhreaticLineAtDikeTopRiver = minimumLevelPhreaticLineAtDikeTopRiver, MinimumLevelPhreaticLineAtDikeTopPolder = minimumLevelPhreaticLineAtDikeTopPolder, - PhreaticLineOffsetBelowDikeTopAtRiver = phreaticLineOffsetBelowDikeTopAtRiver, - PhreaticLineOffsetBelowDikeTopAtPolder = phreaticLineOffsetBelowDikeTopAtPolder, - PhreaticLineOffsetBelowShoulderBaseInside = phreaticLineOffsetBelowShoulderBaseInside, - PhreaticLineOffsetBelowDikeToeAtPolder = phreaticLineOffsetBelowDikeToeAtPolder, LeakageLengthOutwardsPhreaticLine3 = leakageLengthOutwardsPhreaticLine3, LeakageLengthInwardsPhreaticLine3 = leakageLengthInwardsPhreaticLine3, LeakageLengthOutwardsPhreaticLine4 = leakageLengthOutwardsPhreaticLine4, LeakageLengthInwardsPhreaticLine4 = leakageLengthInwardsPhreaticLine4, PiezometricHeadPhreaticLine2Outwards = piezometricHeadPhreaticLine2Outwards, PiezometricHeadPhreaticLine2Inwards = piezometricHeadPhreaticLine2Inwards, PenetrationLength = penetrationLength, - UseDefaultOffsets = useDefaultOffsets, AdjustPhreaticLine3And4ForUplift = adjustPhreaticLine3And4ForUplift, DikeSoilScenario = dikeSoilScenario, MoveGrid = moveGrid, @@ -134,23 +126,19 @@ Assert.AreSame(surfaceLine, input.SurfaceLine); Assert.AreSame(soilProfile, input.SoilProfile); Assert.AreSame(drainageConstruction, input.DrainageConstruction); + Assert.AreSame(phreaticLineOffsets, input.PhreaticLineOffsets); Assert.AreEqual(waterLevelRiverAverage, input.WaterLevelRiverAverage); Assert.AreEqual(waterLevelPolder, input.WaterLevelPolder); Assert.AreEqual(minimumLevelPhreaticLineAtDikeTopRiver, input.MinimumLevelPhreaticLineAtDikeTopRiver); Assert.AreEqual(minimumLevelPhreaticLineAtDikeTopPolder, input.MinimumLevelPhreaticLineAtDikeTopPolder); - Assert.AreEqual(phreaticLineOffsetBelowDikeTopAtRiver, input.PhreaticLineOffsetBelowDikeTopAtRiver); - Assert.AreEqual(phreaticLineOffsetBelowDikeTopAtPolder, input.PhreaticLineOffsetBelowDikeTopAtPolder); - Assert.AreEqual(phreaticLineOffsetBelowShoulderBaseInside, input.PhreaticLineOffsetBelowShoulderBaseInside); - Assert.AreEqual(phreaticLineOffsetBelowDikeToeAtPolder, input.PhreaticLineOffsetBelowDikeToeAtPolder); Assert.AreEqual(leakageLengthOutwardsPhreaticLine3, input.LeakageLengthOutwardsPhreaticLine3); Assert.AreEqual(leakageLengthInwardsPhreaticLine3, input.LeakageLengthInwardsPhreaticLine3); Assert.AreEqual(leakageLengthOutwardsPhreaticLine4, input.LeakageLengthOutwardsPhreaticLine4); Assert.AreEqual(leakageLengthInwardsPhreaticLine4, input.LeakageLengthInwardsPhreaticLine4); Assert.AreEqual(piezometricHeadPhreaticLine2Outwards, input.PiezometricHeadPhreaticLine2Outwards); Assert.AreEqual(piezometricHeadPhreaticLine2Inwards, input.PiezometricHeadPhreaticLine2Inwards); Assert.AreEqual(penetrationLength, input.PenetrationLength); - Assert.AreEqual(useDefaultOffsets, input.UseDefaultOffsets); Assert.AreEqual(adjustPhreaticLine3And4ForUplift, input.AdjustPhreaticLine3And4ForUplift); Assert.AreEqual(dikeSoilScenario, input.DikeSoilScenario); @@ -181,6 +169,7 @@ Assert.IsNull(input.SurfaceLine); Assert.IsNull(input.SoilProfile); Assert.IsNull(input.DrainageConstruction); + Assert.IsNull(input.PhreaticLineOffsets); Assert.IsNull(input.LeftGrid); Assert.IsNull(input.RightGrid); @@ -189,10 +178,6 @@ Assert.IsNaN(input.WaterLevelPolder); Assert.IsNaN(input.MinimumLevelPhreaticLineAtDikeTopRiver); Assert.IsNaN(input.MinimumLevelPhreaticLineAtDikeTopPolder); - Assert.IsNaN(input.PhreaticLineOffsetBelowDikeTopAtRiver); - Assert.IsNaN(input.PhreaticLineOffsetBelowDikeToeAtPolder); - Assert.IsNaN(input.PhreaticLineOffsetBelowShoulderBaseInside); - Assert.IsNaN(input.PhreaticLineOffsetBelowDikeToeAtPolder); Assert.IsNaN(input.LeakageLengthOutwardsPhreaticLine3); Assert.IsNaN(input.LeakageLengthInwardsPhreaticLine3); Assert.IsNaN(input.LeakageLengthOutwardsPhreaticLine4); @@ -207,7 +192,6 @@ Assert.IsNaN(input.SlipPlaneMinimumLength); Assert.IsFalse(input.AdjustPhreaticLine3And4ForUplift); - Assert.IsFalse(input.UseDefaultOffsets); Assert.IsFalse(input.MoveGrid); Assert.IsFalse(input.GridAutomaticDetermined); Assert.IsFalse(input.TangentLineAutomaticAtBoundaries); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsetsTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsetsTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/Input/UpliftVanPhreaticLineOffsetsTest.cs (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -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 NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Test.Calculators.UpliftVan.Input +{ + [TestFixture] + public class UpliftVanPhreaticLineOffsetsTest + { + [Test] + public void ParameterlessConstructor_ExpectedValues() + { + // Call + var offsets = new UpliftVanPhreaticLineOffsets(); + + // Assert + Assert.IsTrue(offsets.UseDefaults); + Assert.IsNaN(offsets.BelowDikeTopAtRiver); + Assert.IsNaN(offsets.BelowDikeTopAtPolder); + Assert.IsNaN(offsets.BelowDikeToeAtPolder); + Assert.IsNaN(offsets.BelowShoulderBaseInside); + } + + [Test] + public void ParameterdConstructor_ExpectedValues() + { + // Setup + var random = new Random(11); + double belowDikeTopAtRiver = random.NextDouble(); + double belowDikeTopAtPolder = random.NextDouble(); + double belowDikeToeAtPolder = random.NextDouble(); + double belowShoulderBaseInside = random.NextDouble(); + + // Call + var offsets = new UpliftVanPhreaticLineOffsets(belowDikeTopAtRiver, belowDikeTopAtPolder, belowDikeToeAtPolder, belowShoulderBaseInside); + + // Assert + Assert.IsFalse(offsets.UseDefaults); + Assert.AreEqual(belowDikeTopAtRiver, offsets.BelowDikeTopAtRiver); + Assert.AreEqual(belowDikeTopAtPolder, offsets.BelowDikeTopAtPolder); + Assert.AreEqual(belowDikeToeAtPolder, offsets.BelowDikeToeAtPolder); + Assert.AreEqual(belowShoulderBaseInside, offsets.BelowShoulderBaseInside); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/UpliftVanCalculatorTest.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/UpliftVanCalculatorTest.cs (.../UpliftVanCalculatorTest.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Calculators/UpliftVan/UpliftVanCalculatorTest.cs (.../UpliftVanCalculatorTest.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -221,7 +221,8 @@ SoilProfile = CreateValidSoilProfile(surfaceLine), LeftGrid = new MacroStabilityInwardsGrid(), RightGrid = new MacroStabilityInwardsGrid(), - DrainageConstruction = new UpliftVanDrainageConstruction() + DrainageConstruction = new UpliftVanDrainageConstruction(), + PhreaticLineOffsets = new UpliftVanPhreaticLineOffsets() }); } @@ -237,22 +238,18 @@ SurfaceLine = surfaceLine, SoilProfile = CreateValidSoilProfile(surfaceLine), DrainageConstruction = new UpliftVanDrainageConstruction(), + PhreaticLineOffsets = new UpliftVanPhreaticLineOffsets(), WaterLevelRiverAverage = random.Next(), WaterLevelPolder = random.Next(), MinimumLevelPhreaticLineAtDikeTopRiver = random.Next(), MinimumLevelPhreaticLineAtDikeTopPolder = random.Next(), - PhreaticLineOffsetBelowDikeTopAtRiver = random.Next(), - PhreaticLineOffsetBelowDikeTopAtPolder = random.Next(), - PhreaticLineOffsetBelowShoulderBaseInside = random.Next(), - PhreaticLineOffsetBelowDikeToeAtPolder = random.Next(), LeakageLengthOutwardsPhreaticLine3 = random.Next(), LeakageLengthInwardsPhreaticLine3 = random.Next(), LeakageLengthOutwardsPhreaticLine4 = random.Next(), LeakageLengthInwardsPhreaticLine4 = random.Next(), PiezometricHeadPhreaticLine2Outwards = random.Next(), PiezometricHeadPhreaticLine2Inwards = random.Next(), PenetrationLength = random.Next(), - UseDefaultOffsets = random.NextBoolean(), AdjustPhreaticLine3And4ForUplift = random.NextBoolean(), DikeSoilScenario = random.NextEnumValue(), MoveGrid = random.NextBoolean(), Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/StabilityLocationCreatorTest.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/StabilityLocationCreatorTest.cs (.../StabilityLocationCreatorTest.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/StabilityLocationCreatorTest.cs (.../StabilityLocationCreatorTest.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -76,7 +76,8 @@ new UpliftVanCalculatorInput.ConstructionProperties { DikeSoilScenario = macroStabilityInwardsDikeSoilScenario, - DrainageConstruction = new UpliftVanDrainageConstruction() + DrainageConstruction = new UpliftVanDrainageConstruction(), + PhreaticLineOffsets = new UpliftVanPhreaticLineOffsets() }); // Call @@ -98,7 +99,6 @@ double zCoordinateDrainageConstruction = random.Next(); double minimumLevelPhreaticLineAtDikeTopRiver = random.Next(); double minimumLevelPhreaticLineAtDikeTopPolder = random.Next(); - bool useDefaultOffsets = random.NextBoolean(); double phreaticLineOffsetBelowDikeTopAtRiver = random.Next(); double phreaticLineOffsetBelowDikeTopAtPolder = random.Next(); double phreaticLineOffsetBelowShoulderBaseInside = random.Next(); @@ -113,6 +113,8 @@ double penetrationLength = random.Next(); var drainageConstruction = new UpliftVanDrainageConstruction(xCoordinateDrainageConstruction, zCoordinateDrainageConstruction); + var phreaticLineOffsets = new UpliftVanPhreaticLineOffsets(phreaticLineOffsetBelowDikeTopAtRiver, phreaticLineOffsetBelowDikeTopAtPolder, + phreaticLineOffsetBelowDikeToeAtPolder, phreaticLineOffsetBelowShoulderBaseInside); var input = new UpliftVanCalculatorInput( new UpliftVanCalculatorInput.ConstructionProperties @@ -122,13 +124,9 @@ WaterLevelRiverAverage = waterLevelRiverAverage, WaterLevelPolder = waterLevelPolder, DrainageConstruction = drainageConstruction, + PhreaticLineOffsets = phreaticLineOffsets, MinimumLevelPhreaticLineAtDikeTopRiver = minimumLevelPhreaticLineAtDikeTopRiver, MinimumLevelPhreaticLineAtDikeTopPolder = minimumLevelPhreaticLineAtDikeTopPolder, - UseDefaultOffsets = useDefaultOffsets, - PhreaticLineOffsetBelowDikeTopAtRiver = phreaticLineOffsetBelowDikeTopAtRiver, - PhreaticLineOffsetBelowDikeTopAtPolder = phreaticLineOffsetBelowDikeTopAtPolder, - PhreaticLineOffsetBelowShoulderBaseInside = phreaticLineOffsetBelowShoulderBaseInside, - PhreaticLineOffsetBelowDikeToeAtPolder = phreaticLineOffsetBelowDikeToeAtPolder, AdjustPhreaticLine3And4ForUplift = adjustPhreaticLine3And4ForUplift, LeakageLengthOutwardsPhreaticLine3 = leakageLengthOutwardsPhreaticLine3, LeakageLengthInwardsPhreaticLine3 = leakageLengthInwardsPhreaticLine3, @@ -155,7 +153,7 @@ Assert.AreEqual(zCoordinateDrainageConstruction, location.ZCoordMiddleDrainageConstruction); Assert.AreEqual(minimumLevelPhreaticLineAtDikeTopRiver, location.MinimumLevelPhreaticLineAtDikeTopRiver); Assert.AreEqual(minimumLevelPhreaticLineAtDikeTopPolder, location.MinimumLevelPhreaticLineAtDikeTopPolder); - Assert.AreEqual(useDefaultOffsets, location.UseDefaultOffsets); + Assert.IsFalse(location.UseDefaultOffsets); Assert.AreEqual(phreaticLineOffsetBelowDikeTopAtRiver, location.PlLineOffsetBelowPointBRingtoetsWti2017); Assert.AreEqual(phreaticLineOffsetBelowDikeTopAtPolder, location.PlLineOffsetBelowDikeTopAtPolder); Assert.AreEqual(phreaticLineOffsetBelowShoulderBaseInside, location.PlLineOffsetBelowShoulderBaseInside); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -63,6 +63,7 @@ + Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanPhreaticLineOffsetsConverterTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanPhreaticLineOffsetsConverterTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanPhreaticLineOffsetsConverterTest.cs (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -0,0 +1,95 @@ +// 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.MacroStabilityInwards.Data; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; +using Ringtoets.MacroStabilityInwards.Service.Converters; + +namespace Ringtoets.MacroStabilityInwards.Service.Test.Converters +{ + [TestFixture] + public class UpliftVanPhreaticLineOffsetsConverterTest + { + [Test] + public void Convert_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => UpliftVanPhreaticLineOffsetsConverter.Convert(null); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("input", exception.ParamName); + } + + [Test] + public void Convert_UseDefaultOffsetsTrue_ReturnUpliftVanPhreaticLineOffsets() + { + // Setup + var random = new Random(11); + var input = new MacroStabilityInwardsInput + { + UseDefaultOffsets = true, + PhreaticLineOffsetBelowDikeTopAtRiver = random.NextRoundedDouble(), + PhreaticLineOffsetBelowDikeTopAtPolder = random.NextRoundedDouble(), + PhreaticLineOffsetBelowDikeToeAtPolder = random.NextRoundedDouble(), + PhreaticLineOffsetBelowShoulderBaseInside = random.NextRoundedDouble() + }; + + // Call + UpliftVanPhreaticLineOffsets offsets = UpliftVanPhreaticLineOffsetsConverter.Convert(input); + + // Assert + Assert.IsTrue(offsets.UseDefaults); + Assert.IsNaN(offsets.BelowDikeTopAtRiver); + Assert.IsNaN(offsets.BelowDikeTopAtPolder); + Assert.IsNaN(offsets.BelowDikeToeAtPolder); + Assert.IsNaN(offsets.BelowShoulderBaseInside); + } + + [Test] + public void Convert_UseDefaultOffsetsFalses_ReturnUpliftVanPhreaticLineOffsets() + { + // Setup + var random = new Random(11); + var input = new MacroStabilityInwardsInput + { + UseDefaultOffsets = false, + PhreaticLineOffsetBelowDikeTopAtRiver = random.NextRoundedDouble(), + PhreaticLineOffsetBelowDikeTopAtPolder = random.NextRoundedDouble(), + PhreaticLineOffsetBelowDikeToeAtPolder = random.NextRoundedDouble(), + PhreaticLineOffsetBelowShoulderBaseInside = random.NextRoundedDouble() + }; + + // Call + UpliftVanPhreaticLineOffsets offsets = UpliftVanPhreaticLineOffsetsConverter.Convert(input); + + // Assert + Assert.IsFalse(offsets.UseDefaults); + Assert.AreEqual(input.PhreaticLineOffsetBelowDikeTopAtRiver, offsets.BelowDikeTopAtRiver); + Assert.AreEqual(input.PhreaticLineOffsetBelowDikeTopAtPolder, offsets.BelowDikeTopAtPolder); + Assert.AreEqual(input.PhreaticLineOffsetBelowDikeToeAtPolder, offsets.BelowDikeToeAtPolder); + Assert.AreEqual(input.PhreaticLineOffsetBelowShoulderBaseInside, offsets.BelowShoulderBaseInside); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -373,10 +373,10 @@ UpliftVanCalculatorInput actualInput = ((TestMacroStabilityInwardsCalculatorFactory) MacroStabilityInwardsCalculatorFactory.Instance) .LastCreatedUpliftVanCalculator.Input; Assert.IsFalse(actualInput.DrainageConstruction.IsPresent); - Assert.IsNaN(actualInput.PhreaticLineOffsetBelowDikeToeAtPolder); - Assert.IsNaN(actualInput.PhreaticLineOffsetBelowDikeTopAtPolder); - Assert.IsNaN(actualInput.PhreaticLineOffsetBelowDikeTopAtRiver); - Assert.IsNaN(actualInput.PhreaticLineOffsetBelowShoulderBaseInside); + Assert.IsNaN(actualInput.PhreaticLineOffsets.BelowDikeToeAtPolder); + Assert.IsNaN(actualInput.PhreaticLineOffsets.BelowDikeTopAtPolder); + Assert.IsNaN(actualInput.PhreaticLineOffsets.BelowDikeTopAtRiver); + Assert.IsNaN(actualInput.PhreaticLineOffsets.BelowShoulderBaseInside); } } @@ -452,10 +452,11 @@ Assert.AreEqual(originalInput.ZCoordinateDrainageConstruction, actualInput.DrainageConstruction.ZCoordinate); Assert.AreEqual(originalInput.MinimumLevelPhreaticLineAtDikeTopRiver, actualInput.MinimumLevelPhreaticLineAtDikeTopRiver); Assert.AreEqual(originalInput.MinimumLevelPhreaticLineAtDikeTopPolder, actualInput.MinimumLevelPhreaticLineAtDikeTopPolder); - Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeTopAtRiver, actualInput.PhreaticLineOffsetBelowDikeTopAtRiver); - Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeTopAtPolder, actualInput.PhreaticLineOffsetBelowDikeTopAtPolder); - Assert.AreEqual(originalInput.PhreaticLineOffsetBelowShoulderBaseInside, actualInput.PhreaticLineOffsetBelowShoulderBaseInside); - Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeToeAtPolder, actualInput.PhreaticLineOffsetBelowDikeToeAtPolder); + Assert.AreEqual(originalInput.UseDefaultOffsets, actualInput.PhreaticLineOffsets.UseDefaults); + Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeTopAtRiver, actualInput.PhreaticLineOffsets.BelowDikeTopAtRiver); + Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeTopAtPolder, actualInput.PhreaticLineOffsets.BelowDikeTopAtPolder); + Assert.AreEqual(originalInput.PhreaticLineOffsetBelowShoulderBaseInside, actualInput.PhreaticLineOffsets.BelowShoulderBaseInside); + Assert.AreEqual(originalInput.PhreaticLineOffsetBelowDikeToeAtPolder, actualInput.PhreaticLineOffsets.BelowDikeToeAtPolder); Assert.AreEqual(originalInput.LeakageLengthOutwardsPhreaticLine3, actualInput.LeakageLengthOutwardsPhreaticLine3); Assert.AreEqual(originalInput.LeakageLengthInwardsPhreaticLine3, actualInput.LeakageLengthInwardsPhreaticLine3); Assert.AreEqual(originalInput.LeakageLengthOutwardsPhreaticLine4, actualInput.LeakageLengthOutwardsPhreaticLine4); @@ -464,7 +465,6 @@ Assert.AreEqual(originalInput.PiezometricHeadPhreaticLine2Inwards, actualInput.PiezometricHeadPhreaticLine2Inwards); Assert.AreEqual(originalInput.PenetrationLength, actualInput.PenetrationLength); Assert.AreEqual(originalInput.AdjustPhreaticLine3And4ForUplift, actualInput.AdjustPhreaticLine3And4ForUplift); - Assert.AreEqual(originalInput.UseDefaultOffsets, actualInput.UseDefaultOffsets); Assert.AreEqual(originalInput.MoveGrid, actualInput.MoveGrid); Assert.AreEqual(originalInput.MaximumSliceWidth, actualInput.MaximumSliceWidth); Assert.AreEqual(originalInput.GridDeterminationType == MacroStabilityInwardsGridDeterminationType.Automatic, actualInput.GridAutomaticDetermined); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Ringtoets.MacroStabilityInwards.Service.Test.csproj =================================================================== diff -u -r82014e97419537804be86264d0ed501637ccd10f -r6052143f9ba210f1c75453904ff4bc462e3490d7 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Ringtoets.MacroStabilityInwards.Service.Test.csproj (.../Ringtoets.MacroStabilityInwards.Service.Test.csproj) (revision 82014e97419537804be86264d0ed501637ccd10f) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Ringtoets.MacroStabilityInwards.Service.Test.csproj (.../Ringtoets.MacroStabilityInwards.Service.Test.csproj) (revision 6052143f9ba210f1c75453904ff4bc462e3490d7) @@ -63,6 +63,7 @@ +