Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext.cs
===================================================================
diff -u -r08783ca39a0beaf6c0efb1e8377d894cd3f3c346 -redf9df0fe998b3472d211d0fb3fa3da1209be613
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext.cs) (revision 08783ca39a0beaf6c0efb1e8377d894cd3f3c346)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext.cs) (revision edf9df0fe998b3472d211d0fb3fa3da1209be613)
@@ -20,6 +20,7 @@
// All rights reserved.
using System;
+using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Common.Data.Calculation;
using Ringtoets.Common.Forms.PresentationObjects;
using Ringtoets.GrassCoverErosionOutwards.Data;
@@ -37,9 +38,23 @@
///
/// The wrapped .
/// The failure mechanism the calculation group belongs to.
+ /// The assessment section which the calculation group belongs to.
/// Thrown when any input argument is null.
public GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext(CalculationGroup calculationGroup,
- GrassCoverErosionOutwardsFailureMechanism failureMechanism)
- : base(calculationGroup, failureMechanism) {}
+ GrassCoverErosionOutwardsFailureMechanism failureMechanism,
+ IAssessmentSection assessmentSection)
+ : base(calculationGroup, failureMechanism)
+ {
+ if (assessmentSection == null)
+ {
+ throw new ArgumentNullException("assessmentSection");
+ }
+ AssessmentSection = assessmentSection;
+ }
+
+ ///
+ /// Gets the assessment section which the calculation group belongs to.
+ ///
+ public IAssessmentSection AssessmentSection { get; private set; }
}
}
\ No newline at end of file