Index: Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableFailureMechanismSectionResult.cs =================================================================== diff -u --- Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableFailureMechanismSectionResult.cs (revision 0) +++ Riskeer/Common/src/Riskeer.Common.Data/FailureMechanism/NonAdoptableFailureMechanismSectionResult.cs (revision 6b396c16bfab902d65465a3488da6d7151c137f1) @@ -0,0 +1,44 @@ +// 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.Common.Data.FailureMechanism +{ + /// + /// Class that holds the information of the result of the + /// with an . + /// + public class NonAdoptableFailureMechanismSectionResult : FailureMechanismSectionResult + { + /// + /// + /// Creates a new instance of . + /// + public NonAdoptableFailureMechanismSectionResult(FailureMechanismSection section) : base(section) + { + InitialFailureMechanismResult = NonAdoptableInitialFailureMechanismResultType.Manual; + } + + /// + /// Gets or sets the non adoptable initial failure result. + /// + public NonAdoptableInitialFailureMechanismResultType InitialFailureMechanismResult { get; set; } + } +} \ No newline at end of file Index: Riskeer/Common/test/Riskeer.Common.Data.Test/FailureMechanism/NonAdoptableFailureMechanismSectionResultTest.cs =================================================================== diff -u --- Riskeer/Common/test/Riskeer.Common.Data.Test/FailureMechanism/NonAdoptableFailureMechanismSectionResultTest.cs (revision 0) +++ Riskeer/Common/test/Riskeer.Common.Data.Test/FailureMechanism/NonAdoptableFailureMechanismSectionResultTest.cs (revision 6b396c16bfab902d65465a3488da6d7151c137f1) @@ -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. + +using NUnit.Framework; +using Riskeer.Common.Data.FailureMechanism; +using Riskeer.Common.Data.TestUtil; + +namespace Riskeer.Common.Data.Test.FailureMechanism +{ + [TestFixture] + public class NonAdoptableFailureMechanismSectionResultTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + + // Call + var sectionResult = new NonAdoptableFailureMechanismSectionResult(section); + + // Assert + Assert.IsInstanceOf(sectionResult); + Assert.AreSame(section, sectionResult.Section); + Assert.AreEqual(NonAdoptableInitialFailureMechanismResultType.Manual, sectionResult.InitialFailureMechanismResult); + } + } +} \ No newline at end of file