Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/TestClosingStructure.cs
===================================================================
diff -u -rf88343c0590cb04c7135ce141872940e59325927 -r6b18e2c0134c97e01ba13c518fb7a8efa7f42253
--- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/TestClosingStructure.cs (.../TestClosingStructure.cs) (revision f88343c0590cb04c7135ce141872940e59325927)
+++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/TestClosingStructure.cs (.../TestClosingStructure.cs) (revision 6b18e2c0134c97e01ba13c518fb7a8efa7f42253)
@@ -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,33 +40,52 @@
/// Creates a new instance of .
///
/// The name of the structure.
+ /// Thrown when
+ /// is null, empty or consists of only whitespaces.
public TestClosingStructure(string name)
- : this(name, new Point2D(12345.56789, 9876.54321), ClosingStructureInflowModelType.VerticalWall) {}
+ : this(name, "id", new Point2D(12345.56789, 9876.54321), ClosingStructureInflowModelType.VerticalWall) {}
///
/// 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 TestClosingStructure(string name, string id)
+ : this(name, id, new Point2D(12345.56789, 9876.54321), ClosingStructureInflowModelType.VerticalWall) { }
+
+ ///
+ /// Creates a new instance of .
+ ///
/// The location of the structure.
- public TestClosingStructure(Point2D location) : this("test", location, ClosingStructureInflowModelType.VerticalWall) {}
+ /// Thrown when
+ /// is null.
+ public TestClosingStructure(Point2D location) : this("test", "id", location, ClosingStructureInflowModelType.VerticalWall) {}
///
/// Creates a new instance of .
///
/// The inflow model type of the structure.
public TestClosingStructure(ClosingStructureInflowModelType type)
- : this("test", new Point2D(12345.56789, 9876.54321), type) {}
+ : this("test", "id", new Point2D(12345.56789, 9876.54321), type) {}
///
/// Creates a new instance of .
///
/// The name of the structure.
+ /// The id of the structure
/// The location of the structure.
/// The inflow model type of the structure.
- private TestClosingStructure(string name, Point2D location, ClosingStructureInflowModelType type)
+ /// Thrown when
+ /// is null.
+ /// Thrown when
+ /// or is null, empty or consists of only whitespaces.
+ private TestClosingStructure(string name, string id, Point2D location, ClosingStructureInflowModelType type)
: base(new ConstructionProperties
{
Name = name,
- Id = "id",
+ Id = id,
Location = location,
StorageStructureArea =
{