Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsContext.cs
===================================================================
diff -u -r5387346fe4a7aa93e72d71f86c1e4d0a22a73f91 -ree395d64328db8f999b871e80491399a0a65e844
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsContext.cs (.../GrassCoverErosionOutwardsContext.cs) (revision 5387346fe4a7aa93e72d71f86c1e4d0a22a73f91)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/GrassCoverErosionOutwardsContext.cs (.../GrassCoverErosionOutwardsContext.cs) (revision ee395d64328db8f999b871e80491399a0a65e844)
@@ -22,6 +22,7 @@
using System;
using Core.Common.Base;
using Core.Common.Controls.PresentationObjects;
+using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.GrassCoverErosionOutwards.Data;
namespace Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects
@@ -38,22 +39,34 @@
///
/// The concrete data instance wrapped by this context object.
/// The failure mechanism which the context belongs to.
+ /// The assessment section which the context belongs to.
/// Thrown when any paramater is null.
protected GrassCoverErosionOutwardsContext(T wrappedData,
- GrassCoverErosionOutwardsFailureMechanism failureMechanism)
+ GrassCoverErosionOutwardsFailureMechanism failureMechanism,
+ IAssessmentSection assessmentSection)
: base(wrappedData)
{
if (failureMechanism == null)
{
throw new ArgumentNullException("failureMechanism");
}
+ if (assessmentSection == null)
+ {
+ throw new ArgumentNullException("assessmentSection");
+ }
FailureMechanism = failureMechanism;
+ AssessmentSection = assessmentSection;
}
///
/// Gets the failure mechanism which the context belongs to.
///
public GrassCoverErosionOutwardsFailureMechanism FailureMechanism { get; private set; }
+
+ ///
+ /// Gets the assessment section which the calculation group belongs to.
+ ///
+ public IAssessmentSection AssessmentSection { get; private set; }
}
}
\ No newline at end of file