Index: Ringtoets.sln
===================================================================
diff -u -r19b0a4b405be4b95acebe0f1bf45af326ce5468b -r2718f782259464c5f9f7a6874624d6b2066e31c3
--- Ringtoets.sln (.../Ringtoets.sln) (revision 19b0a4b405be4b95acebe0f1bf45af326ce5468b)
+++ Ringtoets.sln (.../Ringtoets.sln) (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -2027,7 +2027,7 @@
{C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.HydraRing.IO.TestUtil", "Ringtoets\HydraRing\test\Ringtoets.HydraRing.IO.TestUtil\Riskeer.HydraRing.IO.TestUtil.csproj", "{7FB79768-1A8B-41CA-9614-8EC6C3C79482}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.HydraRing.IO.TestUtil", "Ringtoets\HydraRing\test\Riskeer.HydraRing.IO.TestUtil\Riskeer.HydraRing.IO.TestUtil.csproj", "{7FB79768-1A8B-41CA-9614-8EC6C3C79482}"
ProjectSection(ProjectDependencies) = postProject
{C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
EndProjectSection
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj
===================================================================
diff -u -r19b0a4b405be4b95acebe0f1bf45af326ce5468b -r2718f782259464c5f9f7a6874624d6b2066e31c3
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj (.../Ringtoets.HydraRing.IO.TestUtil.Test.csproj) (revision 19b0a4b405be4b95acebe0f1bf45af326ce5468b)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj (.../Ringtoets.HydraRing.IO.TestUtil.Test.csproj) (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -30,7 +30,7 @@
{B69D5B6C-6E14-4FA9-9EBC-8F97678CDB70}Riskeer.HydraRing.IO
-
+ {7FB79768-1A8B-41CA-9614-8EC6C3C79482}Riskeer.HydraRing.IO.TestUtil
Fisheye: Tag 2718f782259464c5f9f7a6874624d6b2066e31c3 refers to a dead (removed) revision in file `Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/Properties/AssemblyInfo.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 2718f782259464c5f9f7a6874624d6b2066e31c3 refers to a dead (removed) revision in file `Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 2718f782259464c5f9f7a6874624d6b2066e31c3 refers to a dead (removed) revision in file `Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 2718f782259464c5f9f7a6874624d6b2066e31c3 refers to a dead (removed) revision in file `Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 2718f782259464c5f9f7a6874624d6b2066e31c3 refers to a dead (removed) revision in file `Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/Riskeer.HydraRing.IO.TestUtil.csproj'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Properties/AssemblyInfo.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Properties/AssemblyInfo.cs (revision 0)
+++ Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Properties/AssemblyInfo.cs (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -0,0 +1,25 @@
+// Copyright (C) Stichting Deltares 2018. 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.Reflection;
+
+[assembly: AssemblyTitle("Riskeer.HydraRing.IO.TestUtil")]
+[assembly: AssemblyProduct("Riskeer.HydraRing.IO.TestUtil")]
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs (revision 0)
+++ Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -0,0 +1,59 @@
+// Copyright (C) Stichting Deltares 2018. 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 Riskeer.HydraRing.IO.HydraulicBoundaryDatabase;
+
+namespace Ringtoets.HydraRing.IO.TestUtil
+{
+ ///
+ /// Factory that creates simple instances
+ /// that can be used for testing.
+ ///
+ public static class ReadHydraulicBoundaryDatabaseTestFactory
+ {
+ ///
+ /// Creates a with random values.
+ ///
+ /// The created .
+ public static ReadHydraulicBoundaryDatabase Create()
+ {
+ var random = new Random(21);
+ return Create(new[]
+ {
+ new ReadHydraulicBoundaryLocation(1, "location1", random.NextDouble(), random.NextDouble()),
+ new ReadHydraulicBoundaryLocation(2, "location2", random.NextDouble(), random.NextDouble())
+ });
+ }
+
+ ///
+ /// Creates a with the provided .
+ ///
+ /// The locations to add to the .
+ /// The created .
+ public static ReadHydraulicBoundaryDatabase Create(IEnumerable locations)
+ {
+ var random = new Random(21);
+ return new ReadHydraulicBoundaryDatabase(random.Next(), "version", locations);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory.cs (revision 0)
+++ Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory.cs (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -0,0 +1,43 @@
+// Copyright (C) Stichting Deltares 2018. 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 Riskeer.HydraRing.IO.HydraulicLocationConfigurationDatabase;
+
+namespace Ringtoets.HydraRing.IO.TestUtil
+{
+ ///
+ /// Factory that creates simple instances
+ /// that can be used for testing.
+ ///
+ public static class ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory
+ {
+ ///
+ /// Creates a .
+ ///
+ /// The created .
+ public static ReadHydraulicLocationConfigurationDatabaseSettings Create()
+ {
+ return new ReadHydraulicLocationConfigurationDatabaseSettings("scenarioName", 1337, "scope", "seaLevel",
+ "riverDischarge", "lakeLevel", "windDirection",
+ "windSpeed", "comment");
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs (revision 0)
+++ Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -0,0 +1,95 @@
+// Copyright (C) Stichting Deltares 2018. 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 System.Linq;
+using Riskeer.HydraRing.IO.HydraulicLocationConfigurationDatabase;
+
+namespace Ringtoets.HydraRing.IO.TestUtil
+{
+ ///
+ /// Factory that creates simple instances
+ /// that can be used for testing.
+ ///
+ public static class ReadHydraulicLocationConfigurationDatabaseTestFactory
+ {
+ ///
+ /// Creates a .
+ ///
+ /// The created .
+ public static ReadHydraulicLocationConfigurationDatabase Create()
+ {
+ return Create(new long[]
+ {
+ 1,
+ 2
+ });
+ }
+
+ ///
+ /// Creates a .
+ ///
+ /// The location ids to add.
+ /// The created .
+ public static ReadHydraulicLocationConfigurationDatabase Create(IEnumerable locationIds)
+ {
+ return Create(locationIds, null);
+ }
+
+ ///
+ /// Create a valid instance of
+ /// with hydraulic location configuration database settings.
+ ///
+ /// The created with hydraulic location configuration database settings.
+ public static ReadHydraulicLocationConfigurationDatabase CreateWithConfigurationSettings()
+ {
+ ReadHydraulicLocationConfigurationDatabaseSettings[] settings =
+ {
+ ReadHydraulicLocationConfigurationDatabaseSettingsTestFactory.Create()
+ };
+
+ return CreateWithConfigurationSettings(settings);
+ }
+
+ ///
+ /// Create a valid instance of
+ /// with hydraulic location configuration database settings.
+ ///
+ /// The to set.
+ /// The created with hydraulic location configuration database settings.
+ public static ReadHydraulicLocationConfigurationDatabase CreateWithConfigurationSettings(IEnumerable settings)
+ {
+ return Create(new long[]
+ {
+ 1,
+ 2
+ }, settings);
+ }
+
+ private static ReadHydraulicLocationConfigurationDatabase Create(IEnumerable locationIds,
+ IEnumerable settings)
+ {
+ return new ReadHydraulicLocationConfigurationDatabase(locationIds.Select(locationId => new ReadHydraulicLocationMapping(locationId, locationId + 100))
+ .ToList(),
+ settings);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Riskeer.HydraRing.IO.TestUtil.csproj
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Riskeer.HydraRing.IO.TestUtil.csproj (revision 0)
+++ Ringtoets/HydraRing/test/Riskeer.HydraRing.IO.TestUtil/Riskeer.HydraRing.IO.TestUtil.csproj (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -0,0 +1,30 @@
+
+
+
+ {7FB79768-1A8B-41CA-9614-8EC6C3C79482}
+ Riskeer.HydraRing.IO.TestUtil
+ Riskeer.HydraRing.IO.TestUtil
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Copying.licenseheader
+
+
+
+
+ {B69D5B6C-6E14-4FA9-9EBC-8F97678CDB70}
+ Riskeer.HydraRing.IO
+
+
+
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/Ringtoets.Integration.Plugin.Test.csproj
===================================================================
diff -u -r19b0a4b405be4b95acebe0f1bf45af326ce5468b -r2718f782259464c5f9f7a6874624d6b2066e31c3
--- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/Ringtoets.Integration.Plugin.Test.csproj (.../Ringtoets.Integration.Plugin.Test.csproj) (revision 19b0a4b405be4b95acebe0f1bf45af326ce5468b)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/Ringtoets.Integration.Plugin.Test.csproj (.../Ringtoets.Integration.Plugin.Test.csproj) (revision 2718f782259464c5f9f7a6874624d6b2066e31c3)
@@ -360,7 +360,7 @@
{74CBA865-9338-447F-BAD9-28312446AE84}Riskeer.HydraRing.Calculation.TestUtil
-
+ {7FB79768-1A8B-41CA-9614-8EC6C3C79482}Riskeer.HydraRing.IO.TestUtil