Index: Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationService.cs
===================================================================
diff -u -r1e096895772e9946fe12cd79003d895e094b5d4b -r52bdea1c12a0bd8a3aee7673de0f9b328580f475
--- Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 1e096895772e9946fe12cd79003d895e094b5d4b)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 52bdea1c12a0bd8a3aee7673de0f9b328580f475)
@@ -44,7 +44,7 @@
private static readonly ILog log = LogManager.GetLogger(typeof(DesignWaterLevelCalculationService));
///
- /// Performs validation over the values on the given . Error information is logged during
+ /// Performs validation of the values in the given . Error information is logged during
/// the execution of the operation.
///
/// The for which to validate the values.
@@ -55,18 +55,18 @@
var calculationName = string.Format(Resources.DesignWaterLevelCalculationService_Name_Assessment_level_for_location_0_, hydraulicBoundaryLocation.Name);
CalculationServiceHelper.LogValidationBeginTime(calculationName);
- var validationProblem = HydraulicDatabaseHelper.ValidatePathForCalculation(hydraulicBoundaryDatabase.FilePath);
- var hasErrors = string.IsNullOrEmpty(validationProblem);
+ string validationProblem = HydraulicDatabaseHelper.ValidatePathForCalculation(hydraulicBoundaryDatabase.FilePath);
+ var isValid = string.IsNullOrEmpty(validationProblem);
- if (!hasErrors)
+ if (!isValid)
{
CalculationServiceHelper.LogMessagesAsError(RingtoetsCommonFormsResources.Hydraulic_boundary_database_connection_failed_0_,
validationProblem);
}
CalculationServiceHelper.LogValidationEndTime(calculationName);
- return hasErrors;
+ return isValid;
}
///