Index: Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryDatabase.cs
===================================================================
diff -u -r381345fcad26d313d3cfd5ccd3d1e131c1d5c379 -r9c9abc3e2e390d787d0aad559d2dd87d48c75ca2
--- Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryDatabase.cs (.../HydraulicBoundaryDatabase.cs) (revision 381345fcad26d313d3cfd5ccd3d1e131c1d5c379)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Hydraulics/HydraulicBoundaryDatabase.cs (.../HydraulicBoundaryDatabase.cs) (revision 9c9abc3e2e390d787d0aad559d2dd87d48c75ca2)
@@ -59,12 +59,12 @@
}
///
- /// The path to the hydraulic boundary database file.
+ /// Gets or sets the path to the hydraulic boundary database file.
///
public string FilePath { get; set; }
///
- /// The version of the hydraulic boundary database.
+ /// Gets or sets the version of the hydraulic boundary database.
///
public string Version { get; set; }
Index: Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ReadHydraulicBoundaryDatabase.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ReadHydraulicBoundaryDatabase.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/FileImporters/ReadHydraulicBoundaryDatabase.cs (revision 9c9abc3e2e390d787d0aad559d2dd87d48c75ca2)
@@ -0,0 +1,60 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using Ringtoets.Common.Data.Hydraulics;
+
+namespace Ringtoets.Common.IO.FileImporters
+{
+ ///
+ /// Class for holding data that is read from a hydraulic boundary database file.
+ ///
+ public class ReadHydraulicBoundaryDatabase
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The version of the read hydraulic boundary database.
+ /// The read hydraulic boundary locations.
+ /// A value indicating whether the Hydra-Ring preprocessor can be used for the read hydraulic boundary database.
+ public ReadHydraulicBoundaryDatabase(string version, IEnumerable locations, bool canUsePreprocessor)
+ {
+ Version = version;
+ Locations = locations;
+ CanUsePreprocessor = canUsePreprocessor;
+ }
+
+ ///
+ /// Gets the version of the read hydraulic boundary database.
+ ///
+ public string Version { get; }
+
+ ///
+ /// Gets the read hydraulic boundary locations.
+ ///
+ public IEnumerable Locations { get; }
+
+ ///
+ /// Gets a value indicating whether the Hydra-Ring preprocessor can be used for the read hydraulic boundary database.
+ ///
+ public bool CanUsePreprocessor { get; }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj
===================================================================
diff -u -r16655233702d8d9b12e8618a6b40acabe27aa1a7 -r9c9abc3e2e390d787d0aad559d2dd87d48c75ca2
--- Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj (.../Ringtoets.Common.IO.csproj) (revision 16655233702d8d9b12e8618a6b40acabe27aa1a7)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj (.../Ringtoets.Common.IO.csproj) (revision 9c9abc3e2e390d787d0aad559d2dd87d48c75ca2)
@@ -55,6 +55,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ReadHydraulicBoundaryDatabaseTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ReadHydraulicBoundaryDatabaseTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/ReadHydraulicBoundaryDatabaseTest.cs (revision 9c9abc3e2e390d787d0aad559d2dd87d48c75ca2)
@@ -0,0 +1,52 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// 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.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.IO.FileImporters;
+
+namespace Ringtoets.Common.IO.Test.FileImporters
+{
+ [TestFixture]
+ public class ReadHydraulicBoundaryDatabaseTest
+ {
+ [Test]
+ public void Constructor_Always_ExpectedValues()
+ {
+ // Setup
+ const string version = "version";
+ IEnumerable hydraulicBoundaryLocations = Enumerable.Empty();
+ bool canUsePreprocessor = new Random(11).NextBoolean();
+
+ // Call
+ var readHydraulicBoundaryDatabase = new ReadHydraulicBoundaryDatabase(version, hydraulicBoundaryLocations, canUsePreprocessor);
+
+ // Assert
+ Assert.AreEqual(version, readHydraulicBoundaryDatabase.Version);
+ Assert.AreSame(hydraulicBoundaryLocations, readHydraulicBoundaryDatabase.Locations);
+ Assert.AreEqual(canUsePreprocessor, readHydraulicBoundaryDatabase.CanUsePreprocessor);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj
===================================================================
diff -u -r153b6e4f03dfc958f4827779da3e1f317a68f261 -r9c9abc3e2e390d787d0aad559d2dd87d48c75ca2
--- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj (.../Ringtoets.Common.IO.Test.csproj) (revision 153b6e4f03dfc958f4827779da3e1f317a68f261)
+++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj (.../Ringtoets.Common.IO.Test.csproj) (revision 9c9abc3e2e390d787d0aad559d2dd87d48c75ca2)
@@ -57,6 +57,7 @@
+