Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/ReadHydraulicLocationConfigurationDatabaseTestFactoryTest.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/ReadHydraulicLocationConfigurationDatabaseTestFactoryTest.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/ReadHydraulicLocationConfigurationDatabaseTestFactoryTest.cs (revision 135c16064b9b0569244d2b57d4ddd89a1f484ef6)
@@ -0,0 +1,49 @@
+// 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 NUnit.Framework;
+using Ringtoets.HydraRing.IO.HydraulicLocationConfigurationDatabase;
+
+namespace Ringtoets.HydraRing.IO.TestUtil.Test
+{
+ [TestFixture]
+ public class ReadHydraulicLocationConfigurationDatabaseTestFactoryTest
+ {
+ [Test]
+ public void Create_ExpectedValues()
+ {
+ // Call
+ ReadHydraulicLocationConfigurationDatabase database = ReadHydraulicLocationConfigurationDatabaseTestFactory.Create();
+
+ // Assert
+ Assert.AreEqual(2, database.LocationIds.Count);
+
+ var i = 1;
+ foreach (KeyValuePair databaseLocationId in database.LocationIds)
+ {
+ Assert.AreEqual(i, databaseLocationId.Key);
+ Assert.AreEqual(i, databaseLocationId.Value);
+ i++;
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj
===================================================================
diff -u -r108f373d8a13de5f14a94d246fadab4068f78f76 -r135c16064b9b0569244d2b57d4ddd89a1f484ef6
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj (.../Ringtoets.HydraRing.IO.TestUtil.Test.csproj) (revision 108f373d8a13de5f14a94d246fadab4068f78f76)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil.Test/Ringtoets.HydraRing.IO.TestUtil.Test.csproj (.../Ringtoets.HydraRing.IO.TestUtil.Test.csproj) (revision 135c16064b9b0569244d2b57d4ddd89a1f484ef6)
@@ -16,6 +16,7 @@
+
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs
===================================================================
diff -u -r108f373d8a13de5f14a94d246fadab4068f78f76 -r135c16064b9b0569244d2b57d4ddd89a1f484ef6
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs (.../ReadHydraulicBoundaryDatabaseTestFactory.cs) (revision 108f373d8a13de5f14a94d246fadab4068f78f76)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicBoundaryDatabaseTestFactory.cs (.../ReadHydraulicBoundaryDatabaseTestFactory.cs) (revision 135c16064b9b0569244d2b57d4ddd89a1f484ef6)
@@ -27,7 +27,7 @@
///
/// Factory that creates simple instances
/// that can be used for testing.
- ///
public static class ReadHydraulicBoundaryDatabaseTestFactory
{
///
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs
===================================================================
diff -u
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs (revision 0)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/ReadHydraulicLocationConfigurationDatabaseTestFactory.cs (revision 135c16064b9b0569244d2b57d4ddd89a1f484ef6)
@@ -0,0 +1,50 @@
+// 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 Ringtoets.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 of .
+ ///
+ /// The created .
+ public static ReadHydraulicLocationConfigurationDatabase Create()
+ {
+ return new ReadHydraulicLocationConfigurationDatabase(new Dictionary
+ {
+ {
+ 1, 1
+ },
+ {
+ 2, 2
+ }
+ });
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/Ringtoets.HydraRing.IO.TestUtil.csproj
===================================================================
diff -u -r108f373d8a13de5f14a94d246fadab4068f78f76 -r135c16064b9b0569244d2b57d4ddd89a1f484ef6
--- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/Ringtoets.HydraRing.IO.TestUtil.csproj (.../Ringtoets.HydraRing.IO.TestUtil.csproj) (revision 108f373d8a13de5f14a94d246fadab4068f78f76)
+++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.TestUtil/Ringtoets.HydraRing.IO.TestUtil.csproj (.../Ringtoets.HydraRing.IO.TestUtil.csproj) (revision 135c16064b9b0569244d2b57d4ddd89a1f484ef6)
@@ -13,6 +13,7 @@
+