Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs
===================================================================
diff -u -r078878de01a4c060d2366b7406fe5236940827ad -rd705284acf98d459d09b5b2afd48ec3a629c9a3f
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs (.../ClosingStructuresContext.cs) (revision 078878de01a4c060d2366b7406fe5236940827ad)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs (.../ClosingStructuresContext.cs) (revision d705284acf98d459d09b5b2afd48ec3a629c9a3f)
@@ -36,22 +36,33 @@
/// Creates an instance of .
///
/// The wrapped containing .
+ /// The failure mechanism which the closing structures belong to.
/// The assessment section which the closing structures belong to.
/// Thrown when any of the input arguments are null.
- public ClosingStructuresContext(ObservableList closingStructures, IAssessmentSection assessmentSection)
+ public ClosingStructuresContext(ObservableList closingStructures, ClosingStructuresFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
: base(closingStructures)
{
if (assessmentSection == null)
{
throw new ArgumentNullException("assessmentSection");
}
+ if (failureMechanism == null)
+ {
+ throw new ArgumentNullException("failureMechanism");
+ }
+ ParentFailureMechanism = failureMechanism;
AssessmentSection = assessmentSection;
}
///
/// Gets the assessment section of this instance.
///
public IAssessmentSection AssessmentSection { get; private set; }
+
+ ///
+ /// Gets the failure mechanism of this instance.
+ ///
+ public ClosingStructuresFailureMechanism ParentFailureMechanism { get; private set; }
}
}
\ No newline at end of file