Index: Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/DesignWaterLevelCalculationMessageProvider.cs =================================================================== diff -u -rd3b14a0f327184e0239e5239c826805c565fe8be -rff5ac96b019952f215d6141bf2a733cf4e063ac9 --- Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/DesignWaterLevelCalculationMessageProvider.cs (.../DesignWaterLevelCalculationMessageProvider.cs) (revision d3b14a0f327184e0239e5239c826805c565fe8be) +++ Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/DesignWaterLevelCalculationMessageProvider.cs (.../DesignWaterLevelCalculationMessageProvider.cs) (revision ff5ac96b019952f215d6141bf2a733cf4e063ac9) @@ -25,7 +25,7 @@ namespace Ringtoets.Common.Service.MessageProviders { /// - /// This class provides messages used during the design water level calculation. + /// This class provides messages used during a design water level calculation. /// public class DesignWaterLevelCalculationMessageProvider : ICalculationMessageProvider { Index: Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/WaveHeightCalculationMessageProvider.cs =================================================================== diff -u -rd3b14a0f327184e0239e5239c826805c565fe8be -rff5ac96b019952f215d6141bf2a733cf4e063ac9 --- Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/WaveHeightCalculationMessageProvider.cs (.../WaveHeightCalculationMessageProvider.cs) (revision d3b14a0f327184e0239e5239c826805c565fe8be) +++ Ringtoets/Common/src/Ringtoets.Common.Service/MessageProviders/WaveHeightCalculationMessageProvider.cs (.../WaveHeightCalculationMessageProvider.cs) (revision ff5ac96b019952f215d6141bf2a733cf4e063ac9) @@ -25,7 +25,7 @@ namespace Ringtoets.Common.Service.MessageProviders { /// - /// This class provides messages used during the wave height calculation. + /// This class provides messages used during a wave height calculation. /// public class WaveHeightCalculationMessageProvider : ICalculationMessageProvider { Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationMessageProvider.cs =================================================================== diff -u --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationMessageProvider.cs (revision 0) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationMessageProvider.cs (revision ff5ac96b019952f215d6141bf2a733cf4e063ac9) @@ -0,0 +1,74 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Ringtoets.Common.Service.MessageProviders; +using Ringtoets.DuneErosion.Service.Properties; + +namespace Ringtoets.DuneErosion.Service +{ + /// + /// This class provides messages used during a dune location calculation. + /// + public class DuneLocationCalculationMessageProvider : ICalculationMessageProvider + { + private readonly string categoryBoundaryName; + + /// + /// Creates a new instance of . + /// + /// The category boundary name. + /// Thrown when is null or empty. + public DuneLocationCalculationMessageProvider(string categoryBoundaryName) + { + if (string.IsNullOrEmpty(categoryBoundaryName)) + { + throw new ArgumentException($"'{nameof(categoryBoundaryName)}' must have a value."); + } + + this.categoryBoundaryName = categoryBoundaryName; + } + + public string GetActivityDescription(string calculationSubject) + { + return string.Format(Resources.DuneLocationCalculationActivity_Calculate_hydraulic_boundary_conditions_for_DuneLocation_with_name_0_, + calculationSubject); + } + + public string GetCalculationFailedMessage(string calculationSubject) + { + return string.Format(Resources.DuneLocationCalculationService_Calculate_Error_in_DuneLocationCalculation_0_no_error_report, + calculationSubject); + } + + public string GetCalculatedNotConvergedMessage(string calculationSubject) + { + return string.Format(Resources.DuneLocationCalculationService_CreateDuneLocationCalculationOutput_Calculation_for_DuneLocation_0_not_converged, + calculationSubject); + } + + public string GetCalculationFailedWithErrorReportMessage(string calculationSubject, string errorReport) + { + return string.Format(Resources.DuneLocationCalculationService_Calculate_Error_in_DuneLocationCalculation_0_click_details_for_last_error_report_1, + calculationSubject, errorReport); + } + } +} \ No newline at end of file Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/Ringtoets.DuneErosion.Service.csproj =================================================================== diff -u -r7d7a01ed91dd10bc4795528179b5f35e5f59f1bd -rff5ac96b019952f215d6141bf2a733cf4e063ac9 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/Ringtoets.DuneErosion.Service.csproj (.../Ringtoets.DuneErosion.Service.csproj) (revision 7d7a01ed91dd10bc4795528179b5f35e5f59f1bd) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/Ringtoets.DuneErosion.Service.csproj (.../Ringtoets.DuneErosion.Service.csproj) (revision ff5ac96b019952f215d6141bf2a733cf4e063ac9) @@ -16,6 +16,7 @@ +