Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs
===================================================================
diff -u -r0f28eb71a18af127ad376776ebd2cd597a0aa5c5 -rad4eba236aac060e0713c9304aaeb5d8b1eb2236
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs (.../HydraulicBoundaryLocationContext.cs) (revision 0f28eb71a18af127ad376776ebd2cd597a0aa5c5)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs (.../HydraulicBoundaryLocationContext.cs) (revision ad4eba236aac060e0713c9304aaeb5d8b1eb2236)
@@ -33,11 +33,27 @@
///
/// Creates a new instance of .
///
- /// The
- /// which the belongs to.
- /// Thrown when
- /// is null.
- protected HydraulicBoundaryLocationContext(HydraulicBoundaryLocation wrappedData)
- : base(wrappedData) {}
+ /// The which the
+ /// belongs to.
+ /// for obtaining a
+ /// based on .
+ /// Thrown when any input parameter is null.
+ protected HydraulicBoundaryLocationContext(HydraulicBoundaryLocation wrappedData,
+ Func getCalculationFunc)
+ : base(wrappedData)
+ {
+ if (getCalculationFunc == null)
+ {
+ throw new ArgumentNullException(nameof(getCalculationFunc));
+ }
+
+ GetCalculationFunc = getCalculationFunc;
+ }
+
+ ///
+ /// Gets the for obtaining a
+ /// based on .
+ ///
+ public Func GetCalculationFunc { get; }
}
}
\ No newline at end of file