Index: Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationCalculation.cs =================================================================== diff -u -rcd48021e80f6584ce1e29c8ab85365fb055a3a1e -re66b3793a9cdea90b0c2665111d7ddc135ddc41e --- Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationCalculation.cs (.../HydraulicBoundaryLocationCalculation.cs) (revision cd48021e80f6584ce1e29c8ab85365fb055a3a1e) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryLocationCalculation.cs (.../HydraulicBoundaryLocationCalculation.cs) (revision e66b3793a9cdea90b0c2665111d7ddc135ddc41e) @@ -19,6 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; + namespace Ringtoets.Common.Data.Hydraulics { /// @@ -29,12 +31,25 @@ /// /// Creates a new instance of . /// - public HydraulicBoundaryLocationCalculation() + /// The hydraulic boundary location the calculation belongs to. + /// Thrown when is null. + public HydraulicBoundaryLocationCalculation(HydraulicBoundaryLocation hydraulicBoundaryLocation) { + if (hydraulicBoundaryLocation == null) + { + throw new ArgumentNullException(nameof(hydraulicBoundaryLocation)); + } + + HydraulicBoundaryLocation = hydraulicBoundaryLocation; InputParameters = new HydraulicBoundaryLocationCalculationInput(); } /// + /// Gets the hydraulic boundary location the calculation belongs to. + /// + public HydraulicBoundaryLocation HydraulicBoundaryLocation { get; } + + /// /// Gets the input of the hydraulic boundary location calculation. /// public HydraulicBoundaryLocationCalculationInput InputParameters { get; } @@ -45,7 +60,7 @@ public HydraulicBoundaryLocationOutput Output { get; set; } /// - /// Gets a value indicating whether or not this calculation item contains calculation output. + /// Gets a value indicating whether this calculation item has output. /// public bool HasOutput {