Index: Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssemblyCategory.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssemblyCategory.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Data/AssemblyTool/FailureMechanismSectionAssemblyCategory.cs (revision 3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2) @@ -0,0 +1,46 @@ +// 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.Common.Data.AssemblyTool +{ + /// + /// Assembly category for failure mechanism section. + /// + public class FailureMechanismSectionAssemblyCategory : AssemblyCategory + { + /// + /// Creates a new instance of . + /// + /// The lower boundary of the category. + /// The upper boundary of the category. + /// The group of the category. + public FailureMechanismSectionAssemblyCategory(double lowerBoundary, double upperBoundary, FailureMechanismSectionAssemblyCategoryGroup group) + : base(lowerBoundary, upperBoundary) + { + Group = group; + } + + /// + /// Gets the group of the assembly category. + /// + public FailureMechanismSectionAssemblyCategoryGroup Group { get; } + } +} \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj =================================================================== diff -u -r6822fd6eaad9812a0aeb49597fdf9536564a1889 -r3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2 --- Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 6822fd6eaad9812a0aeb49597fdf9536564a1889) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Ringtoets.Common.Data.csproj (.../Ringtoets.Common.Data.csproj) (revision 3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2) @@ -20,6 +20,7 @@ + Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssemblyCategoryTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssemblyCategoryTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/AssemblyTool/FailureMechanismSectionAssemblyCategoryTest.cs (revision 3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2) @@ -0,0 +1,51 @@ +// 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; +using Ringtoets.Common.Data.AssemblyTool; + +namespace Ringtoets.Common.Data.Test.AssemblyTool +{ + [TestFixture] + public class FailureMechanismSectionAssemblyCategoryTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(39); + var categoryType = random.NextEnumValue(); + double lowerBoundary = random.NextDouble(); + double upperBoundary = random.NextDouble(); + + // Call + var category = new FailureMechanismSectionAssemblyCategory(lowerBoundary, upperBoundary, categoryType); + + // Assert + Assert.IsInstanceOf(category); + Assert.AreEqual(lowerBoundary, category.LowerBoundary); + Assert.AreEqual(upperBoundary, category.UpperBoundary); + Assert.AreEqual(categoryType, category.Group); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj =================================================================== diff -u -r6822fd6eaad9812a0aeb49597fdf9536564a1889 -r3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2 --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 6822fd6eaad9812a0aeb49597fdf9536564a1889) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Ringtoets.Common.Data.Test.csproj (.../Ringtoets.Common.Data.Test.csproj) (revision 3cee14cfc29fdad6fa393e8c9f4acdc6f5d014c2) @@ -23,6 +23,7 @@ +