Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs =================================================================== diff -u -r634dcb022c87cc68f71f2fc9df4a34189a29fc70 -r28d9f08e359c89436494ad63a6cb7832baa10341 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision 634dcb022c87cc68f71f2fc9df4a34189a29fc70) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision 28d9f08e359c89436494ad63a6cb7832baa10341) @@ -53,37 +53,33 @@ private const int locationDailyPropertyIndex = 13; private const int waterStressLinesPropertyIndex = 14; - private readonly Func getNormativeAssessmentLevelFunc; + private readonly RoundedDouble assessmentLevel; private readonly IObservablePropertyChangeHandler propertyChangeHandler; /// /// Creates a new instance of . /// /// The data of the properties. - /// for obtaining the normative assessment level. + /// The assessment level at stake. /// The handler responsible for handling effects of a property change. - /// Thrown when any parameter is null. + /// Thrown when or + /// is null. public MacroStabilityInwardsWaterStressesProperties(MacroStabilityInwardsInput data, - Func getNormativeAssessmentLevelFunc, + RoundedDouble assessmentLevel, IObservablePropertyChangeHandler propertyChangeHandler) { if (data == null) { throw new ArgumentNullException(nameof(data)); } - if (getNormativeAssessmentLevelFunc == null) - { - throw new ArgumentNullException(nameof(getNormativeAssessmentLevelFunc)); - } - if (propertyChangeHandler == null) { throw new ArgumentNullException(nameof(propertyChangeHandler)); } this.data = data; - this.getNormativeAssessmentLevelFunc = getNormativeAssessmentLevelFunc; + this.assessmentLevel = assessmentLevel; this.propertyChangeHandler = propertyChangeHandler; } @@ -295,7 +291,7 @@ { get { - return new MacroStabilityInwardsWaterStressLinesProperties(data, getNormativeAssessmentLevelFunc); + return new MacroStabilityInwardsWaterStressLinesProperties(data, assessmentLevel); } }