Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs
===================================================================
diff -u -r44d4c114a254db9859fbf71812e599c468dcbe77 -r9fca8960992f7a4e457e3457e35325aafe4ef87b
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs (.../DesignWaterLevelLocationsContext.cs) (revision 44d4c114a254db9859fbf71812e599c468dcbe77)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationsContext.cs (.../DesignWaterLevelLocationsContext.cs) (revision 9fca8960992f7a4e457e3457e35325aafe4ef87b)
@@ -40,10 +40,14 @@
/// The that the belongs to.
/// for obtaining a
/// based on .
- /// Thrown when any parameter is null.
+ /// The name of the category boundary.
+ /// Thrown when ,
+ /// or is null.
+ /// Thrown when is null or empty.
public DesignWaterLevelLocationsContext(ObservableList wrappedData,
IAssessmentSection assessmentSection,
- Func getCalculationFunc)
+ Func getCalculationFunc,
+ string categoryBoundaryName)
: base(wrappedData)
{
if (assessmentSection == null)
@@ -56,8 +60,14 @@
throw new ArgumentNullException(nameof(getCalculationFunc));
}
+ if (string.IsNullOrEmpty(categoryBoundaryName))
+ {
+ throw new ArgumentException(nameof(categoryBoundaryName));
+ }
+
AssessmentSection = assessmentSection;
GetCalculationFunc = getCalculationFunc;
+ CategoryBoundaryName = categoryBoundaryName;
}
///
@@ -70,5 +80,10 @@
/// based on .
///
public Func GetCalculationFunc { get; }
+
+ ///
+ /// Gets the name of the category boundary.
+ ///
+ public string CategoryBoundaryName { get; }
}
}
\ No newline at end of file