Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsGridDetermination.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsGridDetermination.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsGridDetermination.cs (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -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 Core.Common.Utils.Attributes; +using Ringtoets.MacroStabilityInwards.Data.Properties; + +namespace Ringtoets.MacroStabilityInwards.Data +{ + /// + /// The grid determination types. + /// + public enum MacroStabilityInwardsGridDetermination + { + [ResourcesDisplayName(typeof(Resources), nameof(Resources.Automatic_DisplayName))] + Automatic = 1, + [ResourcesDisplayName(typeof(Resources), nameof(Resources.Manual_DisplayName))] + Manual = 2 + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MarcoStabilityInwardsTangentLineDetermination.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MarcoStabilityInwardsTangentLineDetermination.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MarcoStabilityInwardsTangentLineDetermination.cs (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -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 Core.Common.Utils.Attributes; +using Ringtoets.MacroStabilityInwards.Data.Properties; + +namespace Ringtoets.MacroStabilityInwards.Data +{ + /// + /// The tangent line determination types. + /// + public enum MarcoStabilityInwardsTangentLineDetermination + { + [ResourcesDisplayName(typeof(Resources), nameof(Resources.Specified_DisplayName))] + Specified = 1, + [ResourcesDisplayName(typeof(Resources), nameof(Resources.LayerSeparated_DisplayName))] + LayerSeparated = 2 + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs =================================================================== diff -u -r71f7d8eb825900614f79772077339efaa60ef75a -r214c28d886591428bbdaa6e06a57efe2fe06dc07 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 71f7d8eb825900614f79772077339efaa60ef75a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -82,6 +82,15 @@ } /// + /// Looks up a localized string similar to Automatisch. + /// + public static string Automatic_DisplayName { + get { + return ResourceManager.GetString("Automatic_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Klei dijk op klei (geval 1A). /// public static string ClayDikeOnClay_DisplayName { @@ -100,6 +109,15 @@ } /// + /// Looks up a localized string similar to Op laagscheiding. + /// + public static string LayerSeparated_DisplayName { + get { + return ResourceManager.GetString("LayerSeparated_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to STBI. /// public static string MacroStabilityInwardsFailureMechanism_Code { @@ -127,6 +145,15 @@ } /// + /// Looks up a localized string similar to Handmatig. + /// + public static string Manual_DisplayName { + get { + return ResourceManager.GetString("Manual_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Zand dijk op klei (geval 2A). /// public static string SandDikeOnClay_DisplayName { @@ -145,6 +172,15 @@ } /// + /// Looks up a localized string similar to Gespecificeerd. + /// + public static string Specified_DisplayName { + get { + return ResourceManager.GetString("Specified_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Het aandeel van de ondergrondschematisatie in het stochastische ondergrondmodel moet in het bereik {0} liggen.. /// public static string StochasticSoilProfile_Probability_Should_be_in_range_0_ { Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx =================================================================== diff -u -r71f7d8eb825900614f79772077339efaa60ef75a -r214c28d886591428bbdaa6e06a57efe2fe06dc07 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision 71f7d8eb825900614f79772077339efaa60ef75a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -144,4 +144,16 @@ Zand dijk op zand (geval 2B) + + Automatisch + + + Handmatig + + + Op laagscheiding + + + Gespecificeerd + \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj =================================================================== diff -u -r71f7d8eb825900614f79772077339efaa60ef75a -r214c28d886591428bbdaa6e06a57efe2fe06dc07 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 71f7d8eb825900614f79772077339efaa60ef75a) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Ringtoets.MacroStabilityInwards.Data.csproj (.../Ringtoets.MacroStabilityInwards.Data.csproj) (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -39,6 +39,7 @@ Properties\GlobalAssembly.cs + @@ -50,6 +51,7 @@ + True Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridDeterminationTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridDeterminationTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridDeterminationTest.cs (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -0,0 +1,63 @@ +// 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.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; + +namespace Ringtoets.MacroStabilityInwards.Data.Test +{ + [TestFixture] + public class MacroStabilityInwardsGridDeterminationTest : EnumTestFixture + { + protected override IDictionary ExpectedDisplayNameForEnumValues + { + get + { + return new Dictionary + { + { + MacroStabilityInwardsGridDetermination.Automatic, "Automatisch" + }, + { + MacroStabilityInwardsGridDetermination.Manual, "Handmatig" + } + }; + } + } + + protected override IDictionary ExpectedValueForEnumValues + { + get + { + return new Dictionary + { + { + MacroStabilityInwardsGridDetermination.Automatic, 1 + }, + { + MacroStabilityInwardsGridDetermination.Manual, 2 + } + }; + } + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MarcoStabilityInwardsTangentLineDeterminationTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MarcoStabilityInwardsTangentLineDeterminationTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MarcoStabilityInwardsTangentLineDeterminationTest.cs (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -0,0 +1,63 @@ +// 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.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; + +namespace Ringtoets.MacroStabilityInwards.Data.Test +{ + [TestFixture] + public class MarcoStabilityInwardsTangentLineDeterminationTest : EnumTestFixture + { + protected override IDictionary ExpectedDisplayNameForEnumValues + { + get + { + return new Dictionary + { + { + MarcoStabilityInwardsTangentLineDetermination.Specified, "Gespecificeerd" + }, + { + MarcoStabilityInwardsTangentLineDetermination.LayerSeparated, "Op laagscheiding" + } + }; + } + } + + protected override IDictionary ExpectedValueForEnumValues + { + get + { + return new Dictionary + { + { + MarcoStabilityInwardsTangentLineDetermination.Specified, 1 + }, + { + MarcoStabilityInwardsTangentLineDetermination.LayerSeparated, 2 + } + }; + } + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj =================================================================== diff -u -r71f7d8eb825900614f79772077339efaa60ef75a -r214c28d886591428bbdaa6e06a57efe2fe06dc07 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.Test.csproj) (revision 71f7d8eb825900614f79772077339efaa60ef75a) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/Ringtoets.MacroStabilityInwards.Data.Test.csproj (.../Ringtoets.MacroStabilityInwards.Data.Test.csproj) (revision 214c28d886591428bbdaa6e06a57efe2fe06dc07) @@ -62,6 +62,8 @@ + +