Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructure.cs
===================================================================
diff -u -r341ddc4bed3bbbae529c1c282d15cc9b593d1e6a -re2197d5a4596fc769d89bd2f661d657490017d76
--- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructure.cs (.../StabilityPointStructure.cs) (revision 341ddc4bed3bbbae529c1c282d15cc9b593d1e6a)
+++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructure.cs (.../StabilityPointStructure.cs) (revision e2197d5a4596fc769d89bd2f661d657490017d76)
@@ -21,53 +21,24 @@
using System;
using Core.Common.Base.Geometry;
+using Ringtoets.Common.Data;
namespace Ringtoets.StabilityPointStructures.Data
{
///
- /// Definition of a stability point structure for the
+ /// Definition of a stability point structure for the .
///
- public class StabilityPointStructure
+ public class StabilityPointStructure : StructureBase
{
///
/// Creates a new instance of .
///
/// The name of the structure.
/// The identifier of the structure.
/// The location of the structure.
- public StabilityPointStructure(string name, string id, Point2D location)
- {
- if (string.IsNullOrWhiteSpace(name))
- {
- throw new ArgumentException("name");
- }
- if (string.IsNullOrWhiteSpace(id))
- {
- throw new ArgumentException("id");
- }
- if (location == null)
- {
- throw new ArgumentNullException("location");
- }
-
- Name = name;
- Id = id;
- Location = location;
- }
-
- ///
- /// Gets the name of the structure.
- ///
- public string Name { get; private set; }
-
- ///
- /// Gets the identifier of the structure.
- ///
- public string Id { get; private set; }
-
- ///
- /// Gets the location of the structure.
- ///
- public Point2D Location { get; private set; }
+ /// Thrown when or is null
+ /// , empty or consists of whitespace.
+ /// Thrown when is null.
+ public StabilityPointStructure(string name, string id, Point2D location) : base(name, id, location) {}
}
}
\ No newline at end of file