Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs =================================================================== diff -u -rc477f3652d0585abf7ef81a5a186535d7f27796f -r8f520bfb676e408cabd22c74a56ad9c2aa1c3089 --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs (.../WaveHeightLocationsContext.cs) (revision c477f3652d0585abf7ef81a5a186535d7f27796f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationsContext.cs (.../WaveHeightLocationsContext.cs) (revision 8f520bfb676e408cabd22c74a56ad9c2aa1c3089) @@ -38,14 +38,16 @@ /// /// The locations that the belongs to. /// The that the belongs to. + /// for obtaining the norm to use during calculations. /// for obtaining a /// based on . /// The name of the category boundary. - /// Thrown when , - /// or is null. + /// Thrown when , , + /// or is null. /// Thrown when is null or empty. public WaveHeightLocationsContext(ObservableList wrappedData, IAssessmentSection assessmentSection, + Func getNormFunc, Func getCalculationFunc, string categoryBoundaryName) : base(wrappedData) @@ -55,6 +57,11 @@ throw new ArgumentNullException(nameof(assessmentSection)); } + if (getNormFunc == null) + { + throw new ArgumentNullException(nameof(getNormFunc)); + } + if (getCalculationFunc == null) { throw new ArgumentNullException(nameof(getCalculationFunc)); @@ -66,6 +73,7 @@ } AssessmentSection = assessmentSection; + GetNormFunc = getNormFunc; GetCalculationFunc = getCalculationFunc; CategoryBoundaryName = categoryBoundaryName; } @@ -76,6 +84,11 @@ public IAssessmentSection AssessmentSection { get; } /// + /// Gets the for obtaining the norm to use during calculations. + /// + public Func GetNormFunc { get; } + + /// /// Gets the for obtaining a /// based on . ///