Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/AssemblyXmlIdentifiers.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/AssemblyXmlIdentifiers.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/AssemblyXmlIdentifiers.cs (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -0,0 +1,230 @@ +// 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. + +namespace Ringtoets.AssemblyTool.IO.Model +{ + /// + /// Class containing definitions for XML identifiers and namespaces for + /// the serializable assembly model. + /// + public static class AssemblyXmlIdentifiers + { + /// + /// Identifier for an assembly element. + /// + public const string Assembly = "Assemblage"; + + /// + /// Identifier for an assembly group element. + /// + public const string AssemblyGroup = "toetsspoorGroep"; + + /// + /// Identifier for an assembly element. + /// + public const string AssemblyMethod = "assemblagemethode"; + + /// + /// Identifier for an assembly result without probability element. + /// + public const string AssemblyResultWithoutProbability = "toetsoordeelZonderKansschatting"; + + /// + /// Identifier for an assembly result without probability element. + /// + public const string AssemblyResultWithProbability = "toetsoordeelMetKansschatting"; + + /// + /// The XML namespace for assembly objects. + /// + public const string AssemblyNamespace = "http://localhost/standaarden/assemblage"; + + /// + /// Identifier for an assessment process element. + /// + public const string AssessmentProcess = "Beoordelingsproces"; + + /// + /// Identifier for an assessment process ID attribute. + /// + public const string AssessmentProcessId = "BeoordelingsprocesID"; + + /// + /// Identifier for an assessment process ID attribute. + /// + public const string AssessmentProcessIdRef = "BeoordelingsprocesIDRef"; + + /// + /// Identifier for an assessment section ID reference attribute. + /// + public const string AssessmentSectionIdRef = "WaterkeringstelselIDRef"; + + /// + /// Identifier for an assessment section type element. + /// + public const string AssessmentSectionType = "typeWaterkeringstelsel"; + + /// + /// Identifier for an assessment section element. + /// + public const string AssessmentSection = "Waterkeringstelsel"; + + /// + /// Identifier for an assessment section total assembly result element. + /// + public const string AssessmentSectionAssemblyResult = "ToetsoordeelTraject"; + + /// + /// Identifier for an assessment section total assembly result element. + /// + public const string TotalAssemblyResult = "Veiligheidsoordeel"; + + /// + /// Identifier for an assessment section assembly result ID attribute. + /// + public const string TotalAssemblyResultId = "VeiligheidsoordeelID"; + + /// + /// Identifier for an assessment section assembly result ID reference attribute. + /// + public const string TotalAssemblyResultIdRef = "VeiligheidsoordeelIDRef"; + + /// + /// Identifier for an assessment section category group element. + /// + public const string AssessmentSectionCategoryGroup = "categorieTraject"; + + /// + /// Identifier for a bounded by element. + /// + public const string BoundedBy = "boundedBy"; + + /// + /// Identifier for a coordinate system type attribute. + /// + public const string CoordinateSystem = "srsName"; + + /// + /// Identifier for a description element. + /// + public const string Description = "omschrijving"; + + /// + /// Identifier for an end year element. + /// + public const string EndYear = "eindJaarBeoordelingsronde"; + + /// + /// Identifier for an Envelope element. + /// + public const string Envelope = "Envelope"; + + /// + /// Identifier for a failure mechanism element. + /// + public const string FailureMechanism = "Toetsspoor"; + + /// + /// Identifier for a failure mechanism assembly result element. + /// + public const string FailureMechanismAssemblyResult = "toetsoordeel"; + + /// + /// Identifier for a failure mechanism assembly result element. + /// + public const string FailureMechanismDirect = "typeToetsspoor"; + + /// + /// Identifier for a failure mechanism group element. + /// + public const string FailureMechanismType = "typeFaalmechanisme"; + + /// + /// Identifier for a feature member element. + /// + public const string FeatureMember = "featureMember"; + + /// + /// Identifier for a GML geometry element. + /// + public const string Geometry = "posList"; + + /// + /// Identifier for a 2D geometry element. + /// + public const string Geometry2D = "geometrie2D"; + + /// + /// The XML namespace for GML objects. + /// + public const string GmlNamespace = "http://www.opengis.net/gml/3.2"; + + /// + /// Identifier for an ID attribute. + /// + public const string Id = "id"; + + /// + /// Identifier for a length attribute. + /// + public const string Length = "lengte"; + + /// + /// Identifier for a line string element. + /// + public const string LineString = "LineString"; + + /// + /// Identifier for a lower corner attribute. + /// + public const string LowerCorner = "lowerCorner"; + + /// + /// Identifier for a name attribute. + /// + public const string Name = "naam"; + + /// + /// Identifier for a probability element. + /// + public const string Probability = "faalkans"; + + /// + /// Identifier for a start year element. + /// + public const string StartYear = "beginJaarBeoordelingsronde"; + + /// + /// Identifier for a status element. + /// + public const string Status = "status"; + + /// + /// Identifier for a unit of measure attribute. + /// + public const string UnitOfMeasure = "uom"; + + /// + /// Identifier for a lower corner attribute. + /// + public const string UpperCorner = "upperCorner"; + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs =================================================================== diff -u -r03ecd20e9bababf1d856e644a318ef98f3e56f10 -rdf0821e428a89517ad8fbb54cea863264ddbd5af --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision 03ecd20e9bababf1d856e644a318ef98f3e56f10) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/AssemblyXmlEnumIdentifiers.cs (.../AssemblyXmlEnumIdentifiers.cs) (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -188,22 +188,22 @@ #region SerializableFailureMechanismGroup /// - /// Identifier for . + /// Identifier for . /// public const string SerializableFailureMechanismGroup1 = "GEDPROB"; /// - /// Identifier for . + /// Identifier for . /// public const string SerializableFailureMechanismGroup2 = "GEDPROEXB"; /// - /// Identifier for . + /// Identifier for . /// public const string SerializableFailureMechanismGroup3 = "GEDSPROB"; /// - /// Identifier for . + /// Identifier for . /// public const string SerializableFailureMechanismGroup4 = "GEEN"; Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssemblyGroup.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssemblyGroup.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableAssemblyGroup.cs (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -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 SerializableAssemblyGroup + { + /// + /// 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 Fisheye: Tag df0821e428a89517ad8fbb54cea863264ddbd5af refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Model/Enums/SerializableFailureMechanismGroup.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj =================================================================== diff -u -r03ecd20e9bababf1d856e644a318ef98f3e56f10 -rdf0821e428a89517ad8fbb54cea863264ddbd5af --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision 03ecd20e9bababf1d856e644a318ef98f3e56f10) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.IO/Ringtoets.AssemblyTool.IO.csproj (.../Ringtoets.AssemblyTool.IO.csproj) (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -21,7 +21,7 @@ - + Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssemblyGroupTest.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssemblyGroupTest.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableAssemblyGroupTest.cs (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -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 SerializableAssemblyGroupTest : EnumWithXmlEnumNameTestFixture + { + protected override IDictionary ExpectedValueForEnumValues + { + get + { + return new Dictionary + { + { + SerializableAssemblyGroup.Group1, 1 + }, + { + SerializableAssemblyGroup.Group2, 2 + }, + { + SerializableAssemblyGroup.Group3, 3 + }, + { + SerializableAssemblyGroup.Group4, 4 + } + }; + } + } + + protected override IDictionary ExpectedDisplayNameForEnumValues + { + get + { + return new Dictionary + { + { + SerializableAssemblyGroup.Group1, "GEDPROB" + }, + { + SerializableAssemblyGroup.Group2, "GEDPROBEX" + }, + { + SerializableAssemblyGroup.Group3, "GEDPROB" + }, + { + SerializableAssemblyGroup.Group4, "GEEN" + } + }; + } + } + } +} \ No newline at end of file Fisheye: Tag df0821e428a89517ad8fbb54cea863264ddbd5af refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/Enums/SerializableFailureMechanismGroupTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj =================================================================== diff -u -r03ecd20e9bababf1d856e644a318ef98f3e56f10 -rdf0821e428a89517ad8fbb54cea863264ddbd5af --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision 03ecd20e9bababf1d856e644a318ef98f3e56f10) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Ringtoets.AssemblyTool.IO.Test.csproj (.../Ringtoets.AssemblyTool.IO.Test.csproj) (revision df0821e428a89517ad8fbb54cea863264ddbd5af) @@ -19,7 +19,7 @@ - +