Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs =================================================================== diff -u -rba715436cd0186ee10a1edc13d547ee27bea4c89 -r56ac4eb28f5fcc5b20117474e9e4030399d6806a --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs (.../TestDikeProfile.cs) (revision ba715436cd0186ee10a1edc13d547ee27bea4c89) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestDikeProfile.cs (.../TestDikeProfile.cs) (revision 56ac4eb28f5fcc5b20117474e9e4030399d6806a) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using System.Linq; using Core.Common.Base.Geometry; @@ -37,18 +38,42 @@ public TestDikeProfile() : this(new Point2D(0, 0)) {} /// - /// Initializes default at the world origin. + /// Initializes default at the world origin + /// with a specified name. /// /// The name of the dike profile. public TestDikeProfile(string name) : this(name, new Point2D(0, 0)) {} /// - /// Initializes default at the world location. + /// Initializes default at the world origin + /// with a specified name and ID. /// + /// The name of the dike profile. + /// The ID of the dike profile. + /// Thrown when is + /// null, empty, or consists of whitespace. + public TestDikeProfile(string name, string id) + : this(id, name, new Point2D(0, 0), Enumerable.Empty(), Enumerable.Empty()) {} + + /// + /// Initializes default at a specified world + /// location. + /// /// The world coordinate of the dike profile. public TestDikeProfile(Point2D point) : this(null, point) {} /// + /// Initializes default at a specified world + /// location and ID. + /// + /// The world coordinate of the dike profile. + /// The ID of the dike profile. + /// Thrown when is + /// null, empty, or consists of whitespace. + public TestDikeProfile(Point2D point, string id) + : this(id, null, point, Enumerable.Empty(), Enumerable.Empty()) {} + + /// /// Initializes default at the world origin with /// a specified foreshore profile geometry. /// @@ -58,6 +83,17 @@ /// /// Initializes default at the world origin with + /// a specified foreshore profile geometry and ID. + /// + /// The geometry of the . + /// The ID of the dike profile. + /// Thrown when is + /// null, empty, or consists of whitespace. + public TestDikeProfile(IEnumerable foreshoreProfileGeometry, string id) + : this(id, null, new Point2D(0, 0), Enumerable.Empty(), foreshoreProfileGeometry) {} + + /// + /// Initializes default at the world origin with /// a specified dike profile geometry. /// /// The geometry of the . @@ -69,7 +105,8 @@ /// /// The name of the dike profile. /// The world coordinate of the dike profile. - public TestDikeProfile(string name, Point2D point) : this("id", name, point, Enumerable.Empty(), Enumerable.Empty()) {} + public TestDikeProfile(string name, Point2D point) + : this("id", name, point, Enumerable.Empty(), Enumerable.Empty()) {} /// /// Initializes default at the world location with @@ -80,6 +117,8 @@ /// The world coordinate of the dike profile. /// The geometry of the dike. /// The geometry of the . + /// Thrown when is + /// null, empty, or consists of whitespace. private TestDikeProfile(string id, string name, Point2D point, IEnumerable dikeGeometry, IEnumerable foreshoreProfileGeometry) : base(point, dikeGeometry, foreshoreProfileGeometry, null, new ConstructionProperties {