Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyGroupBoundaries.cs =================================================================== diff -u --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyGroupBoundaries.cs (revision 0) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Data/FailureMechanismSectionAssemblyGroupBoundaries.cs (revision 3a3e5f9a31f4398d399bd3fc23008bf5b09abb8d) @@ -0,0 +1,46 @@ +// Copyright (C) Stichting Deltares 2021. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 Riskeer.AssemblyTool.Data +{ + /// + /// Class that holds the boundaries for a + /// + public class FailureMechanismSectionAssemblyGroupBoundaries : AssemblyCategory + { + /// + /// Creates a new instance of . + /// + /// The group of the category. + /// The lower boundary of the category. + /// The upper boundary of the category. + public FailureMechanismSectionAssemblyGroupBoundaries(FailureMechanismSectionAssemblyGroup group, double lowerBoundary, double upperBoundary) + : base(lowerBoundary, upperBoundary) + { + Group = group; + } + + /// + /// Gets the . + /// + public FailureMechanismSectionAssemblyGroup Group { get; } + } +} \ No newline at end of file Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyGroupBoundariesTest.cs =================================================================== diff -u --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyGroupBoundariesTest.cs (revision 0) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyGroupBoundariesTest.cs (revision 3a3e5f9a31f4398d399bd3fc23008bf5b09abb8d) @@ -0,0 +1,49 @@ +// Copyright (C) Stichting Deltares 2021. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 Riskeer.AssemblyTool.Data.Test +{ + [TestFixture] + public class FailureMechanismSectionAssemblyGroupBoundariesTest + { + [Test] + public void Constructor_WithArguments_ExpectedValues() + { + // Setup + var random = new Random(21); + var group = random.NextEnumValue(); + double lowerBoundary = random.NextDouble(); + double upperBoundary = random.NextDouble(); + + // Call + var boundaries = new FailureMechanismSectionAssemblyGroupBoundaries(group, lowerBoundary, upperBoundary); + + // Assert + Assert.IsInstanceOf(boundaries); + Assert.AreEqual(lowerBoundary, boundaries.LowerBoundary); + Assert.AreEqual(upperBoundary, boundaries.UpperBoundary); + } + } +} \ No newline at end of file