Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs
===================================================================
diff -u -r5677f0f28cb43bd9fbe0ebe3e5556b841d5d5695 -r5c823d529eb2fcbf28cecd468b056de07fdb1c11
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs) (revision 5677f0f28cb43bd9fbe0ebe3e5556b841d5d5695)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs) (revision 5c823d529eb2fcbf28cecd468b056de07fdb1c11)
@@ -49,13 +49,16 @@
/// Creates a new instance of .
///
/// The failure mechanism that the locations belong to.
+ /// for obtaining a
+ /// based on .
/// The assessment section that the locations belong to.
/// for getting the norm to derive a mechanism specific norm from.
/// Thrown when any input parameter is null.
public GrassCoverErosionOutwardsDesignWaterLevelLocationsView(GrassCoverErosionOutwardsFailureMechanism failureMechanism,
+ Func getCalculationFunc,
IAssessmentSection assessmentSection,
Func getNormFunc)
- : base(failureMechanism?.HydraulicBoundaryLocations, assessmentSection)
+ : base(failureMechanism?.HydraulicBoundaryLocations, getCalculationFunc, assessmentSection)
{
if (getNormFunc == null)
{
@@ -112,7 +115,7 @@
CalculationGuiService.CalculateDesignWaterLevels(AssessmentSection.HydraulicBoundaryDatabase.FilePath,
AssessmentSection.HydraulicBoundaryDatabase.EffectivePreprocessorDirectory(),
locations,
- hbl => hbl.DesignWaterLevelCalculation,
+ getCalculationFunc,
mechanismSpecificNorm,
messageProvider);
}
@@ -126,7 +129,7 @@
protected override HydraulicBoundaryLocationCalculation GetCalculation(HydraulicBoundaryLocation location)
{
- return location.DesignWaterLevelCalculation;
+ return getCalculationFunc(location);
}
}
}
\ No newline at end of file