Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs =================================================================== diff -u -rf2be29fe8c407a4f32cb1bfcbaf4816c1f99c83f -rd7e204007a0a9e73fdfec7e570a397d4c41a463b --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs (.../HydraulicBoundariesGroupContext.cs) (revision f2be29fe8c407a4f32cb1bfcbaf4816c1f99c83f) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs (.../HydraulicBoundariesGroupContext.cs) (revision d7e204007a0a9e73fdfec7e570a397d4c41a463b) @@ -20,36 +20,51 @@ // All rights reserved. using System; +using Core.Common.Base; using Core.Common.Controls.PresentationObjects; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.GrassCoverErosionOutwards.Data; +using Ringtoets.HydraRing.Data; namespace Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects { /// /// Presentation object for Hydraulic boundary locations and calculations. /// - public class HydraulicBoundariesGroupContext : ObservableWrappedObjectContextBase + public class HydraulicBoundariesGroupContext : ObservableWrappedObjectContextBase> { /// /// Initializes a new instance of the class. /// - /// The failure mechanism which the context belongs to. - /// The assessment section this context belongs to. + /// The locations from the hydraulic boundaries database made for grass cover erosion outwards. + /// The grass cover erosion outwards failure mechanism which the locations belong to. + /// The assessment section the locations belong to. /// Thrown when any input argument is null. - public HydraulicBoundariesGroupContext(GrassCoverErosionOutwardsFailureMechanism failureMechanism, IAssessmentSection assessmentSection) - : base(failureMechanism) + public HydraulicBoundariesGroupContext(ObservableList hydraulicBoundaryLocations, + GrassCoverErosionOutwardsFailureMechanism failureMechanism, + IAssessmentSection assessmentSection) + : base(hydraulicBoundaryLocations) { + if (failureMechanism == null) + { + throw new ArgumentNullException("failureMechanism"); + } if (assessmentSection == null) { throw new ArgumentNullException("assessmentSection"); } AssessmentSection = assessmentSection; + FailureMechanism = failureMechanism; } /// /// Gets the assessment section. /// public IAssessmentSection AssessmentSection { get; private set; } + + /// + /// Gets the failure mechanism. + /// + public GrassCoverErosionOutwardsFailureMechanism FailureMechanism { get; private set; } } } \ No newline at end of file