Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs =================================================================== diff -u -r4512af7782ee31b36941bb280b54d9da2953dd71 -re0368fded7b5205d75bd1fbefd90ba8634d58fa6 --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision 4512af7782ee31b36941bb280b54d9da2953dd71) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision e0368fded7b5205d75bd1fbefd90ba8634d58fa6) @@ -19,9 +19,11 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; - +using Ringtoets.Common.Data; using Ringtoets.Piping.Data; +using Ringtoets.Piping.Forms.Properties; namespace Ringtoets.Piping.Forms.PresentationObjects { @@ -34,5 +36,22 @@ { public PipingInputContext(PipingInput input, IEnumerable surfaceLines, IEnumerable profiles): base(input, surfaceLines, profiles){ } + + public PipingInputContext(PipingInput pipingInput, IEnumerable surfaceLines, IEnumerable soilProfiles, AssessmentSectionBase assessmentSection) + : base(pipingInput, surfaceLines, soilProfiles) + { + if (assessmentSection == null) + { + var message = String.Format(Resources.PipingContext_AssertInputsAreNotNull_DataDescription_0_cannot_be_null, + Resources.PipingContext_DataDescription_AssessmentSection); + throw new ArgumentNullException("assessmentSection", message); + } + AssessmentSection = assessmentSection; + } + + /// + /// Gets the assessment section which the piping context belongs to. + /// + public AssessmentSectionBase AssessmentSection { get; private set; } } } \ No newline at end of file