Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs
===================================================================
diff -u -r6630ee068d7ed26b2bc5767e8184c9cd3f45c9c1 -r6039c7413267b75578dd7df2c1b57e51a5bd44bd
--- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs (.../HydraulicBoundaryDatabaseContext.cs) (revision 6630ee068d7ed26b2bc5767e8184c9cd3f45c9c1)
+++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabaseContext.cs (.../HydraulicBoundaryDatabaseContext.cs) (revision 6039c7413267b75578dd7df2c1b57e51a5bd44bd)
@@ -33,9 +33,23 @@
///
/// Creates a new instance of .
///
- /// The that the belongs to.
- /// Thrown when is null.
- public HydraulicBoundaryDatabaseContext(HydraulicBoundaryDatabase wrappedData)
- : base(wrappedData) {}
+ /// The hydraulic boundary database that the belongs to.
+ /// The hydraulic boundary data that the belongs to.
+ /// Thrown when any input parameter is null.
+ public HydraulicBoundaryDatabaseContext(HydraulicBoundaryDatabase wrappedData, HydraulicBoundaryData hydraulicBoundaryData)
+ : base(wrappedData)
+ {
+ if (hydraulicBoundaryData == null)
+ {
+ throw new ArgumentNullException(nameof(hydraulicBoundaryData));
+ }
+
+ HydraulicBoundaryData = hydraulicBoundaryData;
+ }
+
+ ///
+ /// Gets the hydraulic boundary data that the context belongs to.
+ ///
+ public HydraulicBoundaryData HydraulicBoundaryData { get; }
}
}
\ No newline at end of file
Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabasesContext.cs
===================================================================
diff -u -redaf679ecb5aedb14cc2034cbb5b8bd566ace830 -r6039c7413267b75578dd7df2c1b57e51a5bd44bd
--- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabasesContext.cs (.../HydraulicBoundaryDatabasesContext.cs) (revision edaf679ecb5aedb14cc2034cbb5b8bd566ace830)
+++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/HydraulicBoundaryDatabasesContext.cs (.../HydraulicBoundaryDatabasesContext.cs) (revision 6039c7413267b75578dd7df2c1b57e51a5bd44bd)
@@ -35,7 +35,7 @@
///
/// Creates a new instance of .
///
- /// The that the belongs to.
+ /// The hydraulic boundary data that the belongs to.
/// The assessment section that the belongs to.
/// Thrown when any parameter is null.
public HydraulicBoundaryDatabasesContext(HydraulicBoundaryData wrappedData, AssessmentSection assessmentSection)
Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs
===================================================================
diff -u -r43b8f08a4a22b5118fc43e09d39627f75e10031c -r6039c7413267b75578dd7df2c1b57e51a5bd44bd
--- Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 43b8f08a4a22b5118fc43e09d39627f75e10031c)
+++ Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 6039c7413267b75578dd7df2c1b57e51a5bd44bd)
@@ -2477,7 +2477,8 @@
private static object[] HydraulicBoundaryDatabasesContextChildNodeObjects(HydraulicBoundaryDatabasesContext nodeData)
{
return nodeData.WrappedData.HydraulicBoundaryDatabases
- .Select(hydraulicBoundaryDatabase => new HydraulicBoundaryDatabaseContext(hydraulicBoundaryDatabase))
+ .Select(hydraulicBoundaryDatabase => new HydraulicBoundaryDatabaseContext(hydraulicBoundaryDatabase,
+ nodeData.WrappedData))
.Cast