Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PresentationObjects/HeightStructuresCalculationContext.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PresentationObjects/HeightStructuresCalculationContext.cs (.../HeightStructuresCalculationContext.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PresentationObjects/HeightStructuresCalculationContext.cs (.../HeightStructuresCalculationContext.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3) @@ -21,6 +21,7 @@ using System; using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.HeightStructures.Data; @@ -38,12 +39,24 @@ /// Creates a new instance of . /// /// The instance wrapped by this context object. + /// The that owns the wrapped calculation. /// The failure mechanism which the context belongs to. /// The assessment section which the calculation belongs to. /// Thrown when any input argument is null. public HeightStructuresCalculationContext(StructuresCalculation calculation, + CalculationGroup parent, HeightStructuresFailureMechanism failureMechanism, IAssessmentSection assessmentSection) - : base(calculation, failureMechanism, assessmentSection) {} + : base(calculation, failureMechanism, assessmentSection) + { + if (parent == null) + { + throw new ArgumentNullException(nameof(parent)); + } + + Parent = parent; + } + + public CalculationGroup Parent { get; } } } \ No newline at end of file