Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationActivity.cs
===================================================================
diff -u -r4dc143747911c0acb569c03b4ea6070489afa56a -rebc12f62918b770034e5a13fe8e9e2cdc4864404
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationActivity.cs (.../DuneLocationCalculationActivity.cs) (revision 4dc143747911c0acb569c03b4ea6070489afa56a)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneLocationCalculationActivity.cs (.../DuneLocationCalculationActivity.cs) (revision ebc12f62918b770034e5a13fe8e9e2cdc4864404)
@@ -46,16 +46,16 @@
/// should be used for performing the calculation.
/// The preprocessor directory.
/// The norm to use during the calculation.
- /// The provider of the messages to use during the calculation.
+ /// The name of the category boundary.
/// Preprocessing is disabled when
/// equals .
- /// Thrown when or
- /// is null.
+ /// Thrown when is null.
+ /// Thrown when is null or empty.
public DuneLocationCalculationActivity(DuneLocationCalculation duneLocationCalculation,
string hydraulicBoundaryDatabaseFilePath,
string preprocessorDirectory,
double norm,
- ICalculationMessageProvider messageProvider)
+ string categoryBoundaryName)
: base(duneLocationCalculation)
{
if (messageProvider == null)
@@ -67,8 +67,9 @@
this.hydraulicBoundaryDatabaseFilePath = hydraulicBoundaryDatabaseFilePath;
this.preprocessorDirectory = preprocessorDirectory;
this.norm = norm;
- this.messageProvider = messageProvider;
+ messageProvider = new DesignWaterLevelCalculationMessageProvider(categoryBoundaryName);
+
DuneLocation duneLocation = duneLocationCalculation.DuneLocation;
Description = messageProvider.GetActivityDescription(duneLocation.Name);