Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs =================================================================== diff -u -r0e5eeff9dd34c55950c342eb0c6a36d817fc1cff -r77e9b273f52ff8f3f6a965ac7545797653bd680a --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision 0e5eeff9dd34c55950c342eb0c6a36d817fc1cff) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision 77e9b273f52ff8f3f6a965ac7545797653bd680a) @@ -184,5 +184,29 @@ public const string AssemblyMethodWBI3C1 = "WBI-3C-1"; #endregion + + #region SerializableFailureMechanismGroup + + /// + /// Identifier for + /// + public const string SerializableFailureMechanismGroup1 = "GEDPROB"; + + /// + /// Identifier for + /// + public const string SerializableFailureMechanismGroup2 = "GEDPROEXB"; + + /// + /// Identifier for + /// + public const string SerializableFailureMechanismGroup3 = "GEDSPROB"; + + /// + /// Identifier for + /// + public const string SerializableFailureMechanismGroup4 = "GEEN"; + + #endregion } } \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableFailureMechanismGroup.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableFailureMechanismGroup.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableFailureMechanismGroup.cs (revision 77e9b273f52ff8f3f6a965ac7545797653bd680a) @@ -0,0 +1,55 @@ +// 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.Xml.Serialization; + +namespace Ringtoets.AssemblyTool.IO.Model.Enums +{ + /// + /// Enum defining the serializable failure mechanism groups. + /// + public enum SerializableFailureMechanismGroup + { + /// + /// Represents the failure mechanism group 1. + /// + [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableFailureMechanismGroup1)] + Group1 = 1, + + /// + /// Represents the failure mechanism group 2. + /// + [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableFailureMechanismGroup2)] + Group2 = 2, + + /// + /// Represents the failure mechanism group 3. + /// + [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableFailureMechanismGroup3)] + Group3 = 3, + + /// + /// Represents the failure mechanism group 4. + /// + [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableFailureMechanismGroup4)] + Group4 = 4 + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj =================================================================== diff -u -r0e5eeff9dd34c55950c342eb0c6a36d817fc1cff -r77e9b273f52ff8f3f6a965ac7545797653bd680a --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision 0e5eeff9dd34c55950c342eb0c6a36d817fc1cff) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision 77e9b273f52ff8f3f6a965ac7545797653bd680a) @@ -20,6 +20,7 @@ + Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableFailureMechanismGroupTest.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableFailureMechanismGroupTest.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableFailureMechanismGroupTest.cs (revision 77e9b273f52ff8f3f6a965ac7545797653bd680a) @@ -0,0 +1,76 @@ +// 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; +using Ringtoets.AssemblyTool.IO.Model.Enums; + +namespace Ringtoets.AssemblyTool.IO.Test.Model.Enums +{ + [TestFixture] + public class SerializableFailureMechanismGroupTest : EnumWithXmlEnumNameTestFixture + { + protected override IDictionary ExpectedValueForEnumValues + { + get + { + return new Dictionary + { + { + SerializableFailureMechanismGroup.Group1, 1 + }, + { + SerializableFailureMechanismGroup.Group2, 2 + }, + { + SerializableFailureMechanismGroup.Group3, 3 + }, + { + SerializableFailureMechanismGroup.Group4, 4 + } + }; + } + } + + protected override IDictionary ExpectedDisplayNameForEnumValues + { + get + { + return new Dictionary + { + { + SerializableFailureMechanismGroup.Group1, "GEDPROB" + }, + { + SerializableFailureMechanismGroup.Group2, "GEDPROBEX" + }, + { + SerializableFailureMechanismGroup.Group3, "GEDPROB" + }, + { + SerializableFailureMechanismGroup.Group4, "GEEN" + } + }; + } + } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj =================================================================== diff -u -r0e5eeff9dd34c55950c342eb0c6a36d817fc1cff -r77e9b273f52ff8f3f6a965ac7545797653bd680a --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision 0e5eeff9dd34c55950c342eb0c6a36d817fc1cff) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision 77e9b273f52ff8f3f6a965ac7545797653bd680a) @@ -18,6 +18,7 @@ +