Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationActivity.cs
===================================================================
diff -u -rab2f7996c204ca193fb728b3983b75a97c92c7b6 -r0f61433cb005ad04374dbe99e0a553b967afe64d
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationActivity.cs (.../GrassCoverErosionInwardsCalculationActivity.cs) (revision ab2f7996c204ca193fb728b3983b75a97c92c7b6)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationActivity.cs (.../GrassCoverErosionInwardsCalculationActivity.cs) (revision 0f61433cb005ad04374dbe99e0a553b967afe64d)
@@ -33,7 +33,6 @@
internal class GrassCoverErosionInwardsCalculationActivity : CalculatableActivity
{
private readonly GrassCoverErosionInwardsCalculation calculation;
- private readonly string hydraulicBoundaryDatabaseFilePath;
private readonly GrassCoverErosionInwardsFailureMechanism failureMechanism;
private readonly IAssessmentSection assessmentSection;
private readonly GrassCoverErosionInwardsCalculationService calculationService;
@@ -42,21 +41,14 @@
/// Creates a new instance of .
///
/// The height structures data used for the calculation.
- /// The path which points to the hydraulic boundary database file.
/// The failure mechanism the calculation belongs to.
/// The assessment section the calculation belongs to.
/// Thrown when any input argument is null.
public GrassCoverErosionInwardsCalculationActivity(GrassCoverErosionInwardsCalculation calculation,
- string hydraulicBoundaryDatabaseFilePath,
GrassCoverErosionInwardsFailureMechanism failureMechanism,
IAssessmentSection assessmentSection)
: base(calculation)
{
- if (hydraulicBoundaryDatabaseFilePath == null)
- {
- throw new ArgumentNullException(nameof(hydraulicBoundaryDatabaseFilePath));
- }
-
if (failureMechanism == null)
{
throw new ArgumentNullException(nameof(failureMechanism));
@@ -68,7 +60,6 @@
}
this.calculation = calculation;
- this.hydraulicBoundaryDatabaseFilePath = hydraulicBoundaryDatabaseFilePath;
this.failureMechanism = failureMechanism;
this.assessmentSection = assessmentSection;
@@ -94,7 +85,7 @@
assessmentSection,
failureMechanism.GeneralInput,
failureMechanism.Contribution,
- hydraulicBoundaryDatabaseFilePath);
+ assessmentSection.HydraulicBoundaryDatabase.FilePath);
}
protected override void OnCancel()