Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs =================================================================== diff -u -r634dcb022c87cc68f71f2fc9df4a34189a29fc70 -rcb7cf1ee86e858b3b552335b4924e21d5cc1e387 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs (.../MacroStabilityInwardsWaterStressLinesProperties.cs) (revision 634dcb022c87cc68f71f2fc9df4a34189a29fc70) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressLinesProperties.cs (.../MacroStabilityInwardsWaterStressLinesProperties.cs) (revision cb7cf1ee86e858b3b552335b4924e21d5cc1e387) @@ -38,29 +38,23 @@ private const int waternetExtremePropertyIndex = 1; private const int waternetDailyPropertyIndex = 2; - private readonly Func getNormativeAssessmentLevelFunc; + private readonly RoundedDouble assessmentLevel; /// /// Creates a new instance of . /// /// The data of the properties. - /// for obtaining the normative assessment level. - /// Thrown when any input parameter is null. - public MacroStabilityInwardsWaterStressLinesProperties(MacroStabilityInwardsInput data, - Func getNormativeAssessmentLevelFunc) + /// The assessment level at stake. + /// Thrown when is null. + public MacroStabilityInwardsWaterStressLinesProperties(MacroStabilityInwardsInput data, RoundedDouble assessmentLevel) { if (data == null) { throw new ArgumentNullException(nameof(data)); } - if (getNormativeAssessmentLevelFunc == null) - { - throw new ArgumentNullException(nameof(getNormativeAssessmentLevelFunc)); - } - this.data = data; - this.getNormativeAssessmentLevelFunc = getNormativeAssessmentLevelFunc; + this.assessmentLevel = assessmentLevel; } [PropertyOrder(waternetExtremePropertyIndex)] @@ -72,7 +66,7 @@ { get { - return new MacroStabilityInwardsWaternetProperties(DerivedMacroStabilityInwardsInput.GetWaternetExtreme(data, getNormativeAssessmentLevelFunc())); + return new MacroStabilityInwardsWaternetProperties(DerivedMacroStabilityInwardsInput.GetWaternetExtreme(data, assessmentLevel)); } }