Index: Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationActivity.cs =================================================================== diff -u -rc8743a6562e3e5581138be398f405b7f6b7c8976 -r5fca1638d8f9510eebe352a8a9a86551d7ce9e61 --- Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationActivity.cs (.../WaveHeightCalculationActivity.cs) (revision c8743a6562e3e5581138be398f405b7f6b7c8976) +++ Ringtoets/Common/src/Ringtoets.Common.Service/WaveHeightCalculationActivity.cs (.../WaveHeightCalculationActivity.cs) (revision 5fca1638d8f9510eebe352a8a9a86551d7ce9e61) @@ -22,7 +22,6 @@ using System; using Core.Common.Base.Data; using Core.Common.Base.Service; -using Core.Common.Utils; using log4net; using Ringtoets.Common.Service.MessageProviders; using Ringtoets.HydraRing.Calculation.Activities; @@ -46,14 +45,13 @@ /// /// Creates a new instance of . /// - /// The provider of the messages to use during the calculation. /// The to perform the calculation for. /// The HLCD file that should be used for performing the calculation. /// The id of the ring to perform the calculation for. /// The norm to use during the calculation. + /// The provider of the messages to use during the calculation. /// Thrown when is null. - public WaveHeightCalculationActivity(ICalculationMessageProvider messageProvider, - IHydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath, string ringId, double norm) + public WaveHeightCalculationActivity(IHydraulicBoundaryLocation hydraulicBoundaryLocation, string hydraulicBoundaryDatabaseFilePath, string ringId, double norm, ICalculationMessageProvider messageProvider) { if (hydraulicBoundaryLocation == null) { @@ -83,9 +81,8 @@ return; } - PerformRun(() => WaveHeightCalculationService.Instance.Validate( - messageProvider.GetCalculationName(hydraulicBoundaryLocation.Name), - hydraulicBoundaryDatabaseFilePath), + PerformRun(() => WaveHeightCalculationService.Instance.Validate(messageProvider.GetCalculationName(hydraulicBoundaryLocation.Name), + hydraulicBoundaryDatabaseFilePath), () => RingtoetsCommonDataSynchronizationService.ClearWaveHeight(hydraulicBoundaryLocation), () => WaveHeightCalculationService.Instance.Calculate(hydraulicBoundaryLocation, hydraulicBoundaryDatabaseFilePath, @@ -97,7 +94,7 @@ PerformFinish(() => { hydraulicBoundaryLocation.WaveHeight = (RoundedDouble) Output.Result; - bool waveHeightCalculationConvergence = RingtoetsCommonDataSynchronizationService.CalculationConverged(Output, norm); + bool waveHeightCalculationConvergence = RingtoetsCommonDataSynchronizationService.CalculationConverged(Output, norm); if (!waveHeightCalculationConvergence) { log.WarnFormat(messageProvider.GetCalculatedNotConvergedMessage(hydraulicBoundaryLocation.Name));