Index: Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs =================================================================== diff -u -ra1c33c8b5ffa012cd2c4334ef354d937d00f4f97 -r1513447d61c0a667d233af5da6ba0480ffe5c3c3 --- Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision a1c33c8b5ffa012cd2c4334ef354d937d00f4f97) +++ Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 1513447d61c0a667d233af5da6ba0480ffe5c3c3) @@ -93,17 +93,15 @@ /// /// Performs a calculation for the design water level. /// - /// The hydraulic boundary location the belongs to. /// The hydraulic boundary location calculation to perform. /// The path which points to the hydraulic boundary database file. /// The preprocessor directory. /// The norm of the assessment section. /// The object which is used to build log messages. /// Preprocessing is disabled when /// equals . - /// Thrown when , - /// or - /// is null. + /// Thrown when or + /// is null. /// Thrown when /// /// contains invalid characters. @@ -117,18 +115,12 @@ /// Unable to read required data from database file. /// /// Thrown when an error occurs while performing the calculation. - public void Calculate(HydraulicBoundaryLocation hydraulicBoundaryLocation, - HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation, + public void Calculate(HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation, string hydraulicBoundaryDatabaseFilePath, string preprocessorDirectory, double norm, ICalculationMessageProvider messageProvider) { - if (hydraulicBoundaryLocation == null) - { - throw new ArgumentNullException(nameof(hydraulicBoundaryLocation)); - } - if (hydraulicBoundaryLocationCalculation == null) { throw new ArgumentNullException(nameof(hydraulicBoundaryLocationCalculation)); @@ -140,6 +132,7 @@ } string hlcdDirectory = Path.GetDirectoryName(hydraulicBoundaryDatabaseFilePath); + HydraulicBoundaryLocation hydraulicBoundaryLocation = hydraulicBoundaryLocationCalculation.HydraulicBoundaryLocation; CalculationServiceHelper.LogCalculationBegin();