Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs
===================================================================
diff -u -rd0d416e8cadb9c542bce09ab6d8ce304d651d9b8 -rb53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision d0d416e8cadb9c542bce09ab6d8ce304d651d9b8)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -110,6 +110,35 @@
#endregion
+ #region SerializableAssessmentSectionCategoryGroup
+
+ ///
+ /// Identifier for .
+ ///
+ public const string SerializableAssessmentSectionCategoryGroupAPlus = "A+";
+
+ ///
+ /// Identifier for .
+ ///
+ public const string SerializableAssessmentSectionCategoryGroupA = "A";
+
+ ///
+ /// Identifier for .
+ ///
+ public const string SerializableAssessmentSectionCategoryGroupB = "B";
+
+ ///
+ /// Identifier for .
+ ///
+ public const string SerializableAssessmentSectionCategoryGroupC = "C";
+
+ ///
+ /// Identifier for .
+ ///
+ public const string SerializableAssessmentSectionCategoryGroupD = "D";
+
+ #endregion
+
#region SerializableAssemblyMethod
///
Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssessmentSectionCategoryGroup.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssessmentSectionCategoryGroup.cs (revision 0)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssessmentSectionCategoryGroup.cs (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -0,0 +1,61 @@
+// 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 assembly categories for an assessment section.
+ ///
+ public enum SerializableAssessmentSectionCategoryGroup
+ {
+ ///
+ /// Represents the assembly category A+ for an assessment section.
+ ///
+ [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupAPlus)]
+ APlus = 1,
+
+ ///
+ /// Represents the assembly category A for an assessment section.
+ ///
+ [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupA)]
+ A = 2,
+
+ ///
+ /// Represents the assembly category IIt for an assessment section.
+ ///
+ [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupB)]
+ B = 3,
+
+ ///
+ /// Represents the assembly category IIIt for an assessment section.
+ ///
+ [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupC)]
+ C = 4,
+
+ ///
+ /// Represents the assembly category IVt for an assessment section.
+ ///
+ [XmlEnum(AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupD)]
+ D = 5
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj
===================================================================
diff -u -r5c59e60cae7bc68b321c0ee187a7d4dd9dd753b2 -rb53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4
--- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision 5c59e60cae7bc68b321c0ee187a7d4dd9dd753b2)
+++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -22,6 +22,7 @@
+
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/AssemblyXmlEnumIdentifiersTest.cs
===================================================================
diff -u -rd25cb785f385ccf9a25b57aeeaf741a2c78ef356 -rb53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/AssemblyXmlEnumIdentifiersTest.cs (.../AssemblyXmlEnumIdentifiersTest.cs) (revision d25cb785f385ccf9a25b57aeeaf741a2c78ef356)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/AssemblyXmlEnumIdentifiersTest.cs (.../AssemblyXmlEnumIdentifiersTest.cs) (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -47,6 +47,12 @@
Assert.AreEqual("V-vak", AssemblyXmlEnumIdentifiers.SerializableFailureMechanismSectionCategoryGroupVv);
Assert.AreEqual("VI-vak", AssemblyXmlEnumIdentifiers.SerializableFailureMechanismSectionCategoryGroupVIv);
Assert.AreEqual("VII-vak", AssemblyXmlEnumIdentifiers.SerializableFailureMechanismSectionCategoryGroupVIIv);
+
+ Assert.AreEqual("A+", AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupAPlus);
+ Assert.AreEqual("A", AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupA);
+ Assert.AreEqual("B", AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupB);
+ Assert.AreEqual("C", AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupC);
+ Assert.AreEqual("D", AssemblyXmlEnumIdentifiers.SerializableAssessmentSectionCategoryGroupD);
Assert.AreEqual("WBI-0E-1", AssemblyXmlEnumIdentifiers.SerializableAssemblyMethodWBI0E1);
Assert.AreEqual("WBI-0E-3", AssemblyXmlEnumIdentifiers.SerializableAssemblyMethodWBI0E3);
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssessmentSectionCategoryGroupTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssessmentSectionCategoryGroupTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssessmentSectionCategoryGroupTest.cs (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -0,0 +1,82 @@
+// 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 SerializableAssessmentSectionCategoryGroupTest : EnumWithXmlEnumNameTestFixture
+ {
+ protected override IDictionary ExpectedValueForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ SerializableAssessmentSectionCategoryGroup.APlus, 1
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.A, 2
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.B, 3
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.C, 4
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.D, 5
+ }
+ };
+ }
+ }
+
+ protected override IDictionary ExpectedDisplayNameForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ SerializableAssessmentSectionCategoryGroup.APlus, "A+"
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.A, "A"
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.B, "B"
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.C, "C"
+ },
+ {
+ SerializableAssessmentSectionCategoryGroup.D, "D"
+ }
+ };
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj
===================================================================
diff -u -r5c59e60cae7bc68b321c0ee187a7d4dd9dd753b2 -rb53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision 5c59e60cae7bc68b321c0ee187a7d4dd9dd753b2)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision b53d4c3c4221c2fcbc7b3c679e62d59a165fe8d4)
@@ -20,6 +20,7 @@
+