Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/TestHeightStructure.cs
===================================================================
diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -r8cbb4a20c556600eeabe49b979ea5fce12e1a6b3
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/TestHeightStructure.cs (.../TestHeightStructure.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/TestHeightStructure.cs (.../TestHeightStructure.cs) (revision 8cbb4a20c556600eeabe49b979ea5fce12e1a6b3)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using Core.Common.Base.Data;
using Core.Common.Base.Geometry;
@@ -39,26 +40,57 @@
/// Creates a new instance of .
///
/// The name of the structure.
+ /// Thrown when
+ /// is null, empty or consists of only whitespaces.
public TestHeightStructure(string name)
- : this(name, new Point2D(0.0, 0.0)) {}
+ : this(name, "Id", new Point2D(0.0, 0.0)) {}
///
/// Creates a new instance of .
///
+ /// The name of the structure.
+ /// The id of the structure.
+ /// Thrown when
+ /// or is null, empty or consists of only whitespaces.
+ public TestHeightStructure(string name, string id)
+ : this(name, id, new Point2D(0.0, 0.0)) {}
+
+ ///
+ /// Creates a new instance of .
+ ///
/// The location of the structure.
+ /// Thrown when
+ /// is null.
public TestHeightStructure(Point2D location)
- : this("Test", location) {}
+ : this("Test", "Id", location) {}
///
/// Creates a new instance of .
///
+ /// The location of the structure.
+ /// The id of the structure.
+ /// Thrown when
+ /// is null.
+ /// Thrown when
+ /// is null, empty or consists of only whitespaces.
+ public TestHeightStructure(Point2D location, string id)
+ : this("Test", id, location) {}
+
+ ///
+ /// Creates a new instance of .
+ ///
/// The name of the structure.
+ /// The id of the structure.
/// The location of the structure.
- public TestHeightStructure(string name, Point2D location)
+ /// Thrown when
+ /// is null.
+ /// Thrown when
+ /// or is null, empty or consists of only whitespaces.
+ public TestHeightStructure(string name, string id, Point2D location)
: base(new ConstructionProperties
{
Name = name,
- Id = "Id",
+ Id = id,
Location = location,
StructureNormalOrientation = (RoundedDouble) 0.12345,
LevelCrestStructure =