Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationContext.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationContext.cs (.../ClosingStructuresCalculationContext.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationContext.cs (.../ClosingStructuresCalculationContext.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3) @@ -22,6 +22,7 @@ using System; using Ringtoets.ClosingStructures.Data; using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.PresentationObjects; @@ -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 calculation belongs to. /// The assessment section which the calculation belongs to. /// Thrown when any input argument is null. public ClosingStructuresCalculationContext(StructuresCalculation wrappedData, + CalculationGroup parent, ClosingStructuresFailureMechanism failureMechanism, IAssessmentSection assessmentSection) - : base(wrappedData, failureMechanism, assessmentSection) {} + : base(wrappedData, failureMechanism, assessmentSection) + { + if (parent == null) + { + throw new ArgumentNullException(nameof(parent)); + } + + Parent = parent; + } + + public CalculationGroup Parent { get; } } } \ No newline at end of file