Index: Riskeer/DuneErosion/src/Riskeer.DuneErosion.Data/DuneLocation.cs
===================================================================
diff -u -r52c3d6c3c369cbdb020756c537ab5c6cea4c5514 -r1f9fe4766bb8cce8a7c55a71308ba828fa373db3
--- Riskeer/DuneErosion/src/Riskeer.DuneErosion.Data/DuneLocation.cs (.../DuneLocation.cs) (revision 52c3d6c3c369cbdb020756c537ab5c6cea4c5514)
+++ Riskeer/DuneErosion/src/Riskeer.DuneErosion.Data/DuneLocation.cs (.../DuneLocation.cs) (revision 1f9fe4766bb8cce8a7c55a71308ba828fa373db3)
@@ -22,6 +22,7 @@
using System;
using Core.Common.Base.Data;
using Core.Common.Base.Geometry;
+using Riskeer.Common.Data.Hydraulics;
namespace Riskeer.DuneErosion.Data
{
@@ -33,15 +34,20 @@
///
/// Creates a new instance of .
///
- /// Id of the .
- /// Name of the .
+ /// The corresponding .
+ /// The name of the .
/// The coordinate of the .
- /// The container of the properties for the
- ///
- /// Thrown when
- /// or is null.
- public DuneLocation(long id, string name, Point2D location, ConstructionProperties properties)
+ /// The container of the properties for the .
+ /// Thrown when ,
+ /// or is null.
+ public DuneLocation(HydraulicBoundaryLocation hydraulicBoundaryLocation, string name,
+ Point2D location, ConstructionProperties properties)
{
+ if (hydraulicBoundaryLocation == null)
+ {
+ throw new ArgumentNullException(nameof(hydraulicBoundaryLocation));
+ }
+
if (name == null)
{
throw new ArgumentNullException(nameof(name));
@@ -52,7 +58,7 @@
throw new ArgumentNullException(nameof(properties));
}
- Id = id;
+ Id = hydraulicBoundaryLocation.Id;
Name = name;
Location = location;
CoastalAreaId = properties.CoastalAreaId;