Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.Designer.cs =================================================================== diff -u -rfa6b386609815ae4b5c860d8e697e0d86777bd56 -r1d60d806d430aa4cde8bbbd7c16fbd9050240cd5 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision fa6b386609815ae4b5c860d8e697e0d86777bd56) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -22,7 +22,6 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.resx =================================================================== diff -u -rfa6b386609815ae4b5c860d8e697e0d86777bd56 -r1d60d806d430aa4cde8bbbd7c16fbd9050240cd5 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.resx (.../Resources.resx) (revision fa6b386609815ae4b5c860d8e697e0d86777bd56) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/Properties/Resources.resx (.../Resources.resx) (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -132,7 +132,7 @@ D - + NDo Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Model/Enums/ExportableFailureMechanismSectionAssemblyGroup.cs =================================================================== diff -u --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Model/Enums/ExportableFailureMechanismSectionAssemblyGroup.cs (revision 0) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Model/Enums/ExportableFailureMechanismSectionAssemblyGroup.cs (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -0,0 +1,98 @@ +// Copyright (C) Stichting Deltares 2022. 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. + +using Core.Common.Util.Attributes; +using Riskeer.AssemblyTool.IO.Properties; + +namespace Riskeer.AssemblyTool.IO.Model.Enums +{ + /// + /// Enum defining the exportable assembly groups for an failure mechanism section. + /// + public enum ExportableFailureMechanismSectionAssemblyGroup + { + /// + /// Represents group Not Dominant. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_NotDominant_DisplayName))] + NotDominant = 1, + + /// + /// Represents group +III. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_III_DisplayName))] + III = 2, + + /// + /// Represents group +II. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_II_DisplayName))] + II = 3, + + /// + /// Represents group +I. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_I_DisplayName))] + I = 4, + + /// + /// Represents group 0. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_Zero_DisplayName))] + Zero = 5, + + /// + /// Represents group -I. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_IMin_DisplayName))] + IMin = 6, + + /// + /// Represents group -II. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_IIMin_DisplayName))] + IIMin = 7, + + /// + /// Represents group -III. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_IIIMin_DisplayName))] + IIIMin = 8, + + /// + /// Represents group Dominant. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_Dominant_DisplayName))] + Dominant = 9, + + /// + /// Represents group No Result. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_NoResult_DisplayName))] + NoResult = 10, + + /// + /// Represents group Not Relevant. + /// + [ResourcesDisplayName(typeof(Resources), nameof(Resources.ExportableFailureMechanismSectionAssemblyGroup_NotRelevant_DisplayName))] + NotRelevant = 11 + } +} \ No newline at end of file Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs =================================================================== diff -u -r72a6b70c2348c56b05ba2f10c631322d7f1f007e -r1d60d806d430aa4cde8bbbd7c16fbd9050240cd5 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -261,6 +261,105 @@ } /// + /// Looks up a localized string similar to Do. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_Dominant_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_Dominant_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to +I. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_I_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_I_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to +II. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_II_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_II_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to +III. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_III_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_III_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -III. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_IIIMin_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_IIIMin_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -II. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_IIMin_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_IIMin_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -I. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_IMin_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_IMin_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to . + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_NoResult_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_NoResult_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to NDo. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_NotDominant_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_NotDominant_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to NR. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_NotRelevant_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_NotRelevant_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0. + /// + internal static string ExportableFailureMechanismSectionAssemblyGroup_Zero_DisplayName { + get { + return ResourceManager.GetString("ExportableFailureMechanismSectionAssemblyGroup_Zero_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to DEELVK. /// internal static string FailureMechanismSectionType_Combined { Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx =================================================================== diff -u -r72a6b70c2348c56b05ba2f10c631322d7f1f007e -r1d60d806d430aa4cde8bbbd7c16fbd9050240cd5 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx (.../Resources.resx) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx (.../Resources.resx) (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -186,4 +186,37 @@ DEELVK + + NDo + + + +III + + + +II + + + +I + + + 0 + + + -I + + + -II + + + -III + + + Do + + + + + + NR + \ No newline at end of file Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Model/Enums/ExportableFailureMechanismSectionAssemblyGroupTest.cs =================================================================== diff -u --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Model/Enums/ExportableFailureMechanismSectionAssemblyGroupTest.cs (revision 0) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Model/Enums/ExportableFailureMechanismSectionAssemblyGroupTest.cs (revision 1d60d806d430aa4cde8bbbd7c16fbd9050240cd5) @@ -0,0 +1,108 @@ +// Copyright (C) Stichting Deltares 2022. 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. + +using System.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; +using Riskeer.AssemblyTool.IO.Model.Enums; + +namespace Riskeer.AssemblyTool.IO.Test.Model.Enums +{ + [TestFixture] + public class ExportableFailureMechanismSectionAssemblyGroupTest : EnumWithResourcesDisplayNameTestFixture + { + protected override IDictionary ExpectedValueForEnumValues => + new Dictionary + { + { + ExportableFailureMechanismSectionAssemblyGroup.NotDominant, 1 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.III, 2 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.II, 3 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.I, 4 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.Zero, 5 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IMin, 6 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IIMin, 7 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IIIMin, 8 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.Dominant, 9 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.NoResult, 10 + }, + { + ExportableFailureMechanismSectionAssemblyGroup.NotRelevant, 11 + } + }; + + protected override IDictionary ExpectedDisplayNameForEnumValues => + new Dictionary + { + { + ExportableFailureMechanismSectionAssemblyGroup.NotDominant, "NDo" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.III, "+III" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.II, "+II" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.I, "+I" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.Zero, "0" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IMin, "-I" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IIMin, "-II" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.IIIMin, "-III" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.Dominant, "Do" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.NoResult, "" + }, + { + ExportableFailureMechanismSectionAssemblyGroup.NotRelevant, "NR" + } + }; + } +} \ No newline at end of file