Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssembly.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssembly.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssembly.cs (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -0,0 +1,50 @@ +// 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.Data +{ + /// + /// Assembly for failure mechanisms. + /// + public class FailureMechanismAssembly + { + /// + /// Creates a new instance of . + /// + /// The probability of the assembly. + /// The group of the assembly. + public FailureMechanismAssembly(double probability, FailureMechanismAssemblyCategoryGroup group) + { + Probability = probability; + Group = group; + } + + /// + /// Gets the probability of the assembly. + /// + public double Probability { get; } + + /// + /// Gets the group of the assembly. + /// + public FailureMechanismAssemblyCategoryGroup Group { get; } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs (revision 0) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/FailureMechanismAssemblyCategoryGroup.cs (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -0,0 +1,39 @@ +// 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.Data +{ + /// + /// Enum defining the assembly categories for a failure mechanism. + /// + public enum FailureMechanismAssemblyCategoryGroup + { + None = 1, + NotApplicable = 2, + It = 3, + IIt = 4, + IIIt = 5, + IVt = 6, + Vt = 7, + VIt = 8, + VIIt = 9 + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj =================================================================== diff -u -rd7c34bfcf02544a0ef1adfda5c7804234d7edf72 -re795afb9d63bcdce8fb0e8902d13654590ea777c --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj (.../Ringtoets.AssemblyTool.Data.csproj) (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.Data/Ringtoets.AssemblyTool.Data.csproj (.../Ringtoets.AssemblyTool.Data.csproj) (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -17,6 +17,7 @@ + Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -0,0 +1,68 @@ +// 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; + +namespace Ringtoets.AssemblyTool.Data.Test +{ + [TestFixture] + public class FailureMechanismAssemblyCategoryGroupTest : EnumValuesTestFixture + { + protected override IDictionary ExpectedValueForEnumValues + { + get + { + return new Dictionary + { + { + FailureMechanismAssemblyCategoryGroup.None, 1 + }, + { + FailureMechanismAssemblyCategoryGroup.NotApplicable, 2 + }, + { + FailureMechanismAssemblyCategoryGroup.It, 3 + }, + { + FailureMechanismAssemblyCategoryGroup.IIt, 4 + }, + { + FailureMechanismAssemblyCategoryGroup.IIIt, 5 + }, + { + FailureMechanismAssemblyCategoryGroup.IVt, 6 + }, + { + FailureMechanismAssemblyCategoryGroup.Vt, 7 + }, + { + FailureMechanismAssemblyCategoryGroup.VIt, 8 + }, + { + FailureMechanismAssemblyCategoryGroup.VIIt, 9 + } + }; + } + } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -0,0 +1,47 @@ +// 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; +using Core.Common.TestUtil; +using NUnit.Framework; + +namespace Ringtoets.AssemblyTool.Data.Test +{ + [TestFixture] + public class FailureMechanismAssemblyTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(39); + double probability = random.NextDouble(); + var group = random.NextEnumValue(); + + // Call + var assembly = new FailureMechanismAssembly(probability, group); + + // Assert + Assert.AreEqual(probability, assembly.Probability); + Assert.AreEqual(group, assembly.Group); + } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj =================================================================== diff -u -rd7c34bfcf02544a0ef1adfda5c7804234d7edf72 -re795afb9d63bcdce8fb0e8902d13654590ea777c --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj (.../Ringtoets.AssemblyTool.Data.Test.csproj) (revision d7c34bfcf02544a0ef1adfda5c7804234d7edf72) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Ringtoets.AssemblyTool.Data.Test.csproj (.../Ringtoets.AssemblyTool.Data.Test.csproj) (revision e795afb9d63bcdce8fb0e8902d13654590ea777c) @@ -18,6 +18,7 @@ +