Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs =================================================================== diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -ra2d856fc0440ec50ccb651fa9f2ca3c000f1f3d2 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs (.../MacroStabilityInwardsWaterStressLinesProperties.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs (.../MacroStabilityInwardsWaterStressLinesProperties.cs) (revision a2d856fc0440ec50ccb651fa9f2ca3c000f1f3d2) @@ -21,6 +21,7 @@ using System; using System.ComponentModel; +using Core.Common.Base.Data; using Core.Common.Gui.Attributes; using Core.Common.Gui.PropertyBag; using Core.Common.Util.Attributes; @@ -37,19 +38,29 @@ private const int waternetExtremePropertyIndex = 1; private const int waternetDailyPropertyIndex = 2; + private readonly Func getNormativeAssessmentLevelFunc; + /// /// Creates a new instance of . /// /// The data of the properties. - /// Thrown when is null. - public MacroStabilityInwardsWaterStressLinesProperties(MacroStabilityInwardsInput data) + /// for obtaining the normative assessment level. + /// Thrown when any input parameter is null. + public MacroStabilityInwardsWaterStressLinesProperties(MacroStabilityInwardsInput data, + Func getNormativeAssessmentLevelFunc) { if (data == null) { throw new ArgumentNullException(nameof(data)); } + if (getNormativeAssessmentLevelFunc == null) + { + throw new ArgumentNullException(nameof(getNormativeAssessmentLevelFunc)); + } + this.data = data; + this.getNormativeAssessmentLevelFunc = getNormativeAssessmentLevelFunc; } [PropertyOrder(waternetExtremePropertyIndex)]