Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -rad12f4e2c4a765cc6c20e9f17ac051a99644ec44 -rfd2c44967bae1db12a907fc8790ad47b6ab17170 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision ad12f4e2c4a765cc6c20e9f17ac051a99644ec44) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision fd2c44967bae1db12a907fc8790ad47b6ab17170) @@ -21,6 +21,7 @@ using System; using System.ComponentModel; +using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; @@ -33,13 +34,34 @@ /// internal class HeightStructuresFailureMechanismSectionResultRow : FailureMechanismSectionResultRow { + private readonly HeightStructuresFailureMechanism failureMechanism; + private readonly IAssessmentSection assessmentSection; /// /// Creates a new instance of . /// /// The this row contains. - /// Thrown when is null. - public HeightStructuresFailureMechanismSectionResultRow(HeightStructuresFailureMechanismSectionResult sectionResult) : base(sectionResult) {} + /// The failure mechanism the result belongs to. + /// The assessment section the result belongs to. + /// Thrown when any parameter is null. + public HeightStructuresFailureMechanismSectionResultRow(HeightStructuresFailureMechanismSectionResult sectionResult, + HeightStructuresFailureMechanism failureMechanism, + IAssessmentSection assessmentSection) + : base(sectionResult) + { + if (failureMechanism == null) + { + throw new ArgumentNullException(nameof(failureMechanism)); + } + if (assessmentSection == null) + { + throw new ArgumentNullException(nameof(assessmentSection)); + } + + this.failureMechanism = failureMechanism; + this.assessmentSection = assessmentSection; + } + /// /// Gets or sets the value of the tailored assessment of safety. ///