Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Service/GrassCoverErosionOutwardsWaveConditionsCalculationService.cs =================================================================== diff -u -rb4b93f81c63d098edfd9e50ce1c94e37903e52f6 -rc96deb3a33a6779c640b20b1c866bb93530fad02 --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Service/GrassCoverErosionOutwardsWaveConditionsCalculationService.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationService.cs) (revision b4b93f81c63d098edfd9e50ce1c94e37903e52f6) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Service/GrassCoverErosionOutwardsWaveConditionsCalculationService.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationService.cs) (revision c96deb3a33a6779c640b20b1c866bb93530fad02) @@ -44,22 +44,26 @@ /// Performs validation over the input parameters. Error and status information is logged during the execution of the operation. /// /// The for which to validate the values. + /// The normative assessment level to use for determining water levels. /// The file path of the hydraulic boundary database file which to validate. /// The preprocessor directory to validate. /// true if there were no validation errors; false otherwise. /// Thrown when is null. - public static bool Validate(GrassCoverErosionOutwardsWaveConditionsCalculation calculation, string hydraulicBoundaryDatabaseFilePath, string preprocessorDirectory) + public static bool Validate(GrassCoverErosionOutwardsWaveConditionsCalculation calculation, + RoundedDouble normativeAssessmentLevel, + string hydraulicBoundaryDatabaseFilePath, + string preprocessorDirectory) { if (calculation == null) { throw new ArgumentNullException(nameof(calculation)); } - return ValidateWaveConditionsInput( - calculation.InputParameters, - hydraulicBoundaryDatabaseFilePath, - preprocessorDirectory, - Resources.GrassCoverErosionOutwardsWaveConditionsCalculationService_LogMessage_DesignWaterLevel_name); + return ValidateWaveConditionsInput(calculation.InputParameters, + normativeAssessmentLevel, + hydraulicBoundaryDatabaseFilePath, + preprocessorDirectory, + Resources.GrassCoverErosionOutwardsWaveConditionsCalculationService_LogMessage_DesignWaterLevel_name); } /// @@ -102,10 +106,12 @@ { throw new ArgumentNullException(nameof(calculation)); } + if (failureMechanism == null) { throw new ArgumentNullException(nameof(failureMechanism)); } + if (assessmentSection == null) { throw new ArgumentNullException(nameof(assessmentSection));