Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/PipingStructureFailureMechanismSectionResultContext.cs
===================================================================
diff -u
--- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/PipingStructureFailureMechanismSectionResultContext.cs (revision 0)
+++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/PipingStructureFailureMechanismSectionResultContext.cs (revision ee36143db300c0bbaaf7a4abc742e96210544f87)
@@ -0,0 +1,50 @@
+// 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.Base;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Data.FailureMechanism;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.Integration.Data.StandAlone;
+
+namespace Riskeer.Integration.Forms.PresentationObjects
+{
+ ///
+ /// This class is a presentation object for a collection of
+ /// for the .
+ ///
+ public class PipingStructureFailureMechanismSectionResultContext : ProbabilityFailureMechanismSectionResultContext
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The
+ /// of to wrap.
+ /// The
+ /// the belongs to.
+ /// The assessment section the section results belongs to.
+ /// Thrown when any parameter is null.
+ public PipingStructureFailureMechanismSectionResultContext(IObservableEnumerable wrappedSectionResults,
+ PipingStructureFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
+ : base(wrappedSectionResults, failureMechanism, assessmentSection) {}
+ }
+}
\ No newline at end of file
Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/PipingStructureFailureMechanismSectionResultContextTest.cs
===================================================================
diff -u
--- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/PipingStructureFailureMechanismSectionResultContextTest.cs (revision 0)
+++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PresentationObjects/PipingStructureFailureMechanismSectionResultContextTest.cs (revision ee36143db300c0bbaaf7a4abc742e96210544f87)
@@ -0,0 +1,54 @@
+// 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 Rhino.Mocks;
+using Riskeer.Common.Data.AssessmentSection;
+using Riskeer.Common.Data.FailureMechanism;
+using Riskeer.Common.Forms.PresentationObjects;
+using Riskeer.Integration.Data.StandAlone;
+using Riskeer.Integration.Forms.PresentationObjects;
+
+namespace Riskeer.Integration.Forms.Test.PresentationObjects
+{
+ [TestFixture]
+ public class PipingStructureFailureMechanismSectionResultContextTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var assessmentSection = mocks.Stub();
+ mocks.ReplayAll();
+
+ var failureMechanism = new PipingStructureFailureMechanism();
+
+ // Call
+ var context = new PipingStructureFailureMechanismSectionResultContext(
+ failureMechanism.SectionResults, failureMechanism, assessmentSection);
+
+ // Assert
+ Assert.IsInstanceOf>(context);
+ mocks.VerifyAll();
+ }
+ }
+}
\ No newline at end of file