Index: Riskeer/Common/src/Riskeer.Common.Data/FailurePath/FailurePathAssemblyProbabilityResultType.cs =================================================================== diff -u -r201bafea43b47457fe3c571604a492e2b1da39e6 -r90f0c2690d7fda04357c9c22f39e59406aa9848d --- Riskeer/Common/src/Riskeer.Common.Data/FailurePath/FailurePathAssemblyProbabilityResultType.cs (.../FailurePathAssemblyProbabilityResultType.cs) (revision 201bafea43b47457fe3c571604a492e2b1da39e6) +++ Riskeer/Common/src/Riskeer.Common.Data/FailurePath/FailurePathAssemblyProbabilityResultType.cs (.../FailurePathAssemblyProbabilityResultType.cs) (revision 90f0c2690d7fda04357c9c22f39e59406aa9848d) @@ -19,6 +19,9 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using Core.Common.Util.Attributes; +using Riskeer.Common.Data.Properties; + namespace Riskeer.Common.Data.FailurePath { /// @@ -29,11 +32,13 @@ /// /// The automatically calculated probability type. /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailurePathAssemblyProbabilityResultTypeAutomatic_DisplayName))] Automatic = 1, /// /// The manual probability type. /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailurePathAssemblyProbabilityResultTypeManual_DisplayName))] Manual = 2 } } \ No newline at end of file Index: Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs =================================================================== diff -u -r14af64bfe51815d160aabc39d4d62ea381d7c2ab -r90f0c2690d7fda04357c9c22f39e59406aa9848d --- Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 14af64bfe51815d160aabc39d4d62ea381d7c2ab) +++ Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 90f0c2690d7fda04357c9c22f39e59406aa9848d) @@ -1,25 +1,4 @@ -// Copyright (C) Stichting Deltares 2021. All rights reserved. -// -// This file is part of Riskeer. -// -// Riskeer 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. - -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 @@ -455,6 +434,24 @@ } /// + /// Looks up a localized string similar to Automatisch berekenen. + /// + public static string FailurePathAssemblyProbabilityResultTypeAutomatic_DisplayName { + get { + return ResourceManager.GetString("FailurePathAssemblyProbabilityResultTypeAutomatic_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Handmatig invullen. + /// + public static string FailurePathAssemblyProbabilityResultTypeManual_DisplayName { + get { + return ResourceManager.GetString("FailurePathAssemblyProbabilityResultTypeManual_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to De waarde voor de faalkans moet in het bereik {0} liggen.. /// public static string FailureProbability_Value_needs_to_be_in_Range_0_ { Index: Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx =================================================================== diff -u -r14af64bfe51815d160aabc39d4d62ea381d7c2ab -r90f0c2690d7fda04357c9c22f39e59406aa9848d --- Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx (.../Resources.resx) (revision 14af64bfe51815d160aabc39d4d62ea381d7c2ab) +++ Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx (.../Resources.resx) (revision 90f0c2690d7fda04357c9c22f39e59406aa9848d) @@ -402,13 +402,19 @@ Geen faalkans - + Per doorsnede - + Per vak - + Beide + + Automatisch berekenen + + + Handmatig invullen + \ No newline at end of file Index: Riskeer/Common/test/Riskeer.Common.Data.Test/FailurePath/FailurePathAssemblyProbabilityResultTypeTest.cs =================================================================== diff -u -rf5bd7e0b6014f6f2026ea36d4ee53183cbb8a6a4 -r90f0c2690d7fda04357c9c22f39e59406aa9848d --- Riskeer/Common/test/Riskeer.Common.Data.Test/FailurePath/FailurePathAssemblyProbabilityResultTypeTest.cs (.../FailurePathAssemblyProbabilityResultTypeTest.cs) (revision f5bd7e0b6014f6f2026ea36d4ee53183cbb8a6a4) +++ Riskeer/Common/test/Riskeer.Common.Data.Test/FailurePath/FailurePathAssemblyProbabilityResultTypeTest.cs (.../FailurePathAssemblyProbabilityResultTypeTest.cs) (revision 90f0c2690d7fda04357c9c22f39e59406aa9848d) @@ -27,7 +27,7 @@ namespace Riskeer.Common.Data.Test.FailurePath { [TestFixture] - public class FailurePathAssemblyProbabilityResultTypeTest : EnumValuesTestFixture + public class FailurePathAssemblyProbabilityResultTypeTest : EnumWithResourcesDisplayNameTestFixture { protected override IDictionary ExpectedValueForEnumValues => new Dictionary @@ -39,5 +39,16 @@ FailurePathAssemblyProbabilityResultType.Manual, 2 } }; + + protected override IDictionary ExpectedDisplayNameForEnumValues => + new Dictionary + { + { + FailurePathAssemblyProbabilityResultType.Automatic, "Automatisch berekenen" + }, + { + FailurePathAssemblyProbabilityResultType.Manual, "Handmatig invullen" + } + }; } } \ No newline at end of file