Index: Ringtoets/Common/src/Ringtoets.Common.Data/Contribution/FailureMechanismContribution.cs =================================================================== diff -u -rb726f712c5614827e9bfa8041ee40071e02be3b9 -r7a9c98886fd29efbea53f5be1b0be96c70ffa106 --- Ringtoets/Common/src/Ringtoets.Common.Data/Contribution/FailureMechanismContribution.cs (.../FailureMechanismContribution.cs) (revision b726f712c5614827e9bfa8041ee40071e02be3b9) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Contribution/FailureMechanismContribution.cs (.../FailureMechanismContribution.cs) (revision 7a9c98886fd29efbea53f5be1b0be96c70ffa106) @@ -21,7 +21,9 @@ using System; using System.Collections.Generic; +using System.Globalization; using Core.Common.Base; +using Core.Common.Base.Data; using Core.Common.Utils.Extensions; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Data.Probability; @@ -34,6 +36,8 @@ /// public class FailureMechanismContribution : Observable { + private static readonly Range normValidityRange = new Range(1.0 / 1000000, 1.0 / 10); + private const double defaultNorm = 1.0 / 30000; private readonly ICollection distribution = new List(); @@ -80,7 +84,7 @@ /// Gets or sets the norm which has been defined on the assessment section. /// /// Thrown when the new value is not in - /// the interval [0.0, 1.0] or is . + /// the interval [0.000001, 0.1] or is . public double Norm { get @@ -89,7 +93,12 @@ } set { - ProbabilityHelper.ValidateProbability(value, nameof(value)); + if (!normValidityRange.InRange(value)) + { + string message = string.Format(Resources.Probability_Must_be_in_Range_0_, + normValidityRange.ToString(FormattableConstants.ShowAtLeastOneDecimal, CultureInfo.CurrentCulture)); + throw new ArgumentOutOfRangeException(nameof(value), message); + } norm = value; distribution.ForEachElementDo(d => d.Norm = norm);