Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMapping.cs =================================================================== diff -u --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMapping.cs (revision 0) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMapping.cs (revision 4bb3d8d1b4b5e3a303294163f0218e3176caeb85) @@ -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. + +namespace Ringtoets.HydraRing.IO.HydraulicLocationConfigurationDatabase +{ + /// + /// Class for holding location mapping data that is read from a hydraulic location configuration database file. + /// + public class ReadHydraulicLocationMapping + { + /// + /// Creates a new instance of . + /// + /// The hydraulic boundary location id. + /// The hydraulic location configuration id. + internal ReadHydraulicLocationMapping(long hrdLocationId, long hlcdLocationId) + { + HrdLocationId = hrdLocationId; + HlcdLocationId = hlcdLocationId; + } + + /// + /// Gets the hydraulic boundary location id. + /// + public long HrdLocationId { get; } + + /// + /// Gets the hydraulic location configuration id. + /// + public long HlcdLocationId { get; } + } +} \ No newline at end of file Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj =================================================================== diff -u -r9135a5a4c5bab3c95b31ee7f5ba49c3e501a67c1 -r4bb3d8d1b4b5e3a303294163f0218e3176caeb85 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj (.../Ringtoets.HydraRing.IO.csproj) (revision 9135a5a4c5bab3c95b31ee7f5ba49c3e501a67c1) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj (.../Ringtoets.HydraRing.IO.csproj) (revision 4bb3d8d1b4b5e3a303294163f0218e3176caeb85) @@ -31,6 +31,7 @@ + True Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMappingTest.cs =================================================================== diff -u --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMappingTest.cs (revision 0) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadHydraulicLocationMappingTest.cs (revision 4bb3d8d1b4b5e3a303294163f0218e3176caeb85) @@ -0,0 +1,47 @@ +// 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 NUnit.Framework; +using Ringtoets.HydraRing.IO.HydraulicLocationConfigurationDatabase; + +namespace Ringtoets.HydraRing.IO.Test.HydraulicLocationConfigurationDatabase +{ + [TestFixture] + public class ReadHydraulicLocationMappingTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(21); + long hrdLocationId = random.Next(); + long hlcdLocationId = random.Next(); + + // Call + var locationMapping = new ReadHydraulicLocationMapping(hrdLocationId, hlcdLocationId); + + // Assert + Assert.AreEqual(hrdLocationId, locationMapping.HrdLocationId); + Assert.AreEqual(hlcdLocationId, locationMapping.HlcdLocationId); + } + } +} \ No newline at end of file Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj =================================================================== diff -u -r9135a5a4c5bab3c95b31ee7f5ba49c3e501a67c1 -r4bb3d8d1b4b5e3a303294163f0218e3176caeb85 --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj (.../Ringtoets.HydraRing.IO.Test.csproj) (revision 9135a5a4c5bab3c95b31ee7f5ba49c3e501a67c1) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj (.../Ringtoets.HydraRing.IO.Test.csproj) (revision 4bb3d8d1b4b5e3a303294163f0218e3176caeb85) @@ -31,6 +31,7 @@ +