Index: Ringtoets/Common/src/Ringtoets.Common.Service/RingtoetsCommonDataCalculationService.cs
===================================================================
diff -u -rd56bec747401ad6676fac64af5eef6d5fd89c47c -r4428701fa38521e07aff35c0e2058951ac7d0c93
--- Ringtoets/Common/src/Ringtoets.Common.Service/RingtoetsCommonDataCalculationService.cs (.../RingtoetsCommonDataCalculationService.cs) (revision d56bec747401ad6676fac64af5eef6d5fd89c47c)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/RingtoetsCommonDataCalculationService.cs (.../RingtoetsCommonDataCalculationService.cs) (revision 4428701fa38521e07aff35c0e2058951ac7d0c93)
@@ -22,6 +22,7 @@
using System;
using Core.Common.Utils;
using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.Service.Properties;
namespace Ringtoets.Common.Service
{
@@ -52,19 +53,18 @@
/// the 'N' parameter used to factor in the 'length effect'.
/// The profile specific required probability.
/// Thrown when
- /// or is null.
+ /// or is not greater than 0.
public static double ProfileSpecificRequiredProbability(double norm, double failureMechanismContribution, int n)
{
if (!(failureMechanismContribution > 0))
{
throw new ArgumentOutOfRangeException("failureMechanismContribution", failureMechanismContribution,
- "De bijdrage van dit toetsspoor is nul. " +
- "Daardoor is de doorsnede-eis onbepaald en kunnen de berekeningen niet worden uitgevoerd.");
+ Resources.RingtoetsCommonDataCalculationService_ProfileSpecificRequiredProbability_Contribution_is_zero);
}
if (!(n > 0))
{
- throw new ArgumentOutOfRangeException("n", n, "De N-waarde van dit toetsspoor is nul. " +
- "Daardoor is de doorsnede-eis onbepaald en kunnen de berekeningen niet worden uitgevoerd.");
+ throw new ArgumentOutOfRangeException("n", n,
+ Resources.RingtoetsCommonDataCalculationService_ProfileSpecificRequiredProbability_N_is_zero);
}
return norm*(failureMechanismContribution/100)/n;