Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs
===================================================================
diff -u -re795afb9d63bcdce8fb0e8902d13654590ea777c -re43ccfcc421fc9f2e55ab4257bfb0e53828a7911
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs (.../FailureMechanismAssemblyCategoryGroup.cs) (revision e795afb9d63bcdce8fb0e8902d13654590ea777c)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs (.../FailureMechanismAssemblyCategoryGroup.cs) (revision e43ccfcc421fc9f2e55ab4257bfb0e53828a7911)
@@ -19,21 +19,41 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using Core.Common.Util.Attributes;
+using Ringtoets.AssemblyTool.Data.Properties;
+
namespace Ringtoets.AssemblyTool.Data
{
///
/// Enum defining the assembly categories for a failure mechanism.
///
public enum FailureMechanismAssemblyCategoryGroup
{
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_None_DisplayName))]
None = 1,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_NotApplicable_DisplayName))]
NotApplicable = 2,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_It_DisplayName))]
It = 3,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_IIt_DisplayName))]
IIt = 4,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_IIIt_DisplayName))]
IIIt = 5,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_IVt_DisplayName))]
IVt = 6,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_Vt_DisplayName))]
Vt = 7,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_VIt_DisplayName))]
VIt = 8,
+
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.FailureMechanismAssemblyCategoryGroup_VIIt_DisplayName))]
VIIt = 9
}
}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.Designer.cs
===================================================================
diff -u -r1d2d7ef25144a3fac17653b83da25a0022e65592 -re43ccfcc421fc9f2e55ab4257bfb0e53828a7911
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 1d2d7ef25144a3fac17653b83da25a0022e65592)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision e43ccfcc421fc9f2e55ab4257bfb0e53828a7911)
@@ -143,5 +143,86 @@
return ResourceManager.GetString("AssessmentSectionAssemblyCategoryGroup_None_DisplayName", resourceCulture);
}
}
+
+ ///
+ /// Looks up a localized string similar to IIIt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_IIIt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_IIIt_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to IIt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_IIt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_IIt_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to It.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_It_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_It_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to IVt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_IVt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_IVt_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to .
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_None_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_None_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to -.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_NotApplicable_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_NotApplicable_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to VIIt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_VIIt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_VIIt_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to VIt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_VIt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_VIt_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Vt.
+ ///
+ internal static string FailureMechanismAssemblyCategoryGroup_Vt_DisplayName {
+ get {
+ return ResourceManager.GetString("FailureMechanismAssemblyCategoryGroup_Vt_DisplayName", resourceCulture);
+ }
+ }
}
}
Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.resx
===================================================================
diff -u -r1d2d7ef25144a3fac17653b83da25a0022e65592 -re43ccfcc421fc9f2e55ab4257bfb0e53828a7911
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.resx (.../Resources.resx) (revision 1d2d7ef25144a3fac17653b83da25a0022e65592)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Properties/Resources.resx (.../Resources.resx) (revision e43ccfcc421fc9f2e55ab4257bfb0e53828a7911)
@@ -138,4 +138,31 @@
+
+ IIIt
+
+
+ IIt
+
+
+ It
+
+
+ IVt
+
+
+
+
+
+ -
+
+
+ VIIt
+
+
+ VIt
+
+
+ Vt
+
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs
===================================================================
diff -u -re795afb9d63bcdce8fb0e8902d13654590ea777c -re43ccfcc421fc9f2e55ab4257bfb0e53828a7911
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (.../FailureMechanismAssemblyCategoryGroupTest.cs) (revision e795afb9d63bcdce8fb0e8902d13654590ea777c)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (.../FailureMechanismAssemblyCategoryGroupTest.cs) (revision e43ccfcc421fc9f2e55ab4257bfb0e53828a7911)
@@ -26,13 +26,13 @@
namespace Ringtoets.AssemblyTool.Data.Test
{
[TestFixture]
- public class FailureMechanismAssemblyCategoryGroupTest : EnumValuesTestFixture
+ public class FailureMechanismAssemblyCategoryGroupTest : EnumWithDisplayNameTestFixture
{
- protected override IDictionary ExpectedValueForEnumValues
+ protected override IDictionary ExpectedValueForEnumValues
{
get
{
- return new Dictionary
+ return new Dictionary
{
{
FailureMechanismAssemblyCategoryGroup.None, 1
@@ -64,5 +64,42 @@
};
}
}
+
+ protected override IDictionary ExpectedDisplayNameForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ FailureMechanismAssemblyCategoryGroup.None, ""
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.NotApplicable, "-"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.It, "It"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIt, "IIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIIt, "IIIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IVt, "IVt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.Vt, "Vt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIt, "VIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIIt, "VIIt"
+ }
+ };
+ }
+ }
}
}
\ No newline at end of file