Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs =================================================================== diff -u -rad12f4e2c4a765cc6c20e9f17ac051a99644ec44 -red08434acc8f5619842f1c6cb0b7f9a56cf8dad0 --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision ad12f4e2c4a765cc6c20e9f17ac051a99644ec44) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision ed08434acc8f5619842f1c6cb0b7f9a56cf8dad0) @@ -23,6 +23,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Linq; +using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; @@ -38,21 +39,42 @@ { private const double tolerance = 1e-6; private readonly IEnumerable calculations; + private readonly PipingFailureMechanism failureMechanism; + private readonly IAssessmentSection assessmentSection; /// /// Creates a new instance of . /// /// The that is /// the source of this row. - /// + /// All calculations in the failure mechanism. + /// The failure mechanism the section result belongs to. + /// The assessment section the section result belongs to. /// Throw when any parameter is null. - public PipingFailureMechanismSectionResultRow(PipingFailureMechanismSectionResult sectionResult, IEnumerable calculations) : base(sectionResult) + public PipingFailureMechanismSectionResultRow(PipingFailureMechanismSectionResult sectionResult, + IEnumerable calculations, + PipingFailureMechanism failureMechanism, + IAssessmentSection assessmentSection) + : base(sectionResult) { if (calculations == null) { throw new ArgumentNullException(nameof(calculations)); } + + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + + if (assessmentSection == null) + { + throw new ArgumentNullException(nameof(assessmentSection)); + } + this.calculations = calculations; + this.failureMechanism = failureMechanism; + this.assessmentSection = assessmentSection; } /// @@ -94,7 +116,7 @@ return double.NaN; } - return SectionResult.GetAssessmentLayerTwoA(relevantScenarios); + return SectionResult.GetAssessmentLayerTwoA(relevantScenarios, failureMechanism, assessmentSection); } }