Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabase.cs =================================================================== diff -u --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabase.cs (revision 0) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabase.cs (revision 9f8630eed6ba63a3cac3fe42b6600605d289fac8) @@ -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.Collections.Generic; + +namespace Ringtoets.HydraRing.IO.HydraulicBoundaryDatabase +{ + /// + /// Class for holding data that is read from a hydraulic boundary database file. + /// + public class ReadHydraulicBoundaryDatabase + { + /// + /// Creates a new instance of . + /// + /// The track ID of the read hydraulic boundary database. + /// The version of the read hydraulic boundary database. + /// The read hydraulic boundary locations. + internal ReadHydraulicBoundaryDatabase(long trackId, string version, IEnumerable locations) + { + TrackId = trackId; + Version = version; + Locations = locations; + } + + /// + /// Gets the track Id of the read hydraulic boundary database. + /// + public long TrackId { get; } + + /// + /// Gets the version of the read hydraulic boundary database. + /// + public string Version { get; } + + /// + /// Gets the read hydraulic boundary locations. + /// + public IEnumerable Locations { get; } + } +} \ No newline at end of file Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj =================================================================== diff -u -r00cd167e5b3fe6e817e063ab654459c90e550aea -r9f8630eed6ba63a3cac3fe42b6600605d289fac8 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj (.../Ringtoets.HydraRing.IO.csproj) (revision 00cd167e5b3fe6e817e063ab654459c90e550aea) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/Ringtoets.HydraRing.IO.csproj (.../Ringtoets.HydraRing.IO.csproj) (revision 9f8630eed6ba63a3cac3fe42b6600605d289fac8) @@ -24,6 +24,7 @@ + Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabaseTest.cs =================================================================== diff -u --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabaseTest.cs (revision 0) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/HydraulicBoundaryDatabase/ReadHydraulicBoundaryDatabaseTest.cs (revision 9f8630eed6ba63a3cac3fe42b6600605d289fac8) @@ -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 System.Linq; +using NUnit.Framework; +using Ringtoets.HydraRing.IO.HydraulicBoundaryDatabase; + +namespace Ringtoets.HydraRing.IO.Test.HydraulicBoundaryDatabase +{ + [TestFixture] + public class ReadHydraulicBoundaryDatabaseTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + const long trackId = 1; + const string version = "version"; + IEnumerable locations = Enumerable.Empty(); + + // Call + var database = new ReadHydraulicBoundaryDatabase(trackId, version, locations); + + // Assert + Assert.AreEqual(trackId, database.TrackId); + Assert.AreEqual(version, database.Version); + Assert.AreSame(locations, database.Locations); + } + } +} \ No newline at end of file Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj =================================================================== diff -u -r00cd167e5b3fe6e817e063ab654459c90e550aea -r9f8630eed6ba63a3cac3fe42b6600605d289fac8 --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj (.../Ringtoets.HydraRing.IO.Test.csproj) (revision 00cd167e5b3fe6e817e063ab654459c90e550aea) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.IO.Test/Ringtoets.HydraRing.IO.Test.csproj (.../Ringtoets.HydraRing.IO.Test.csproj) (revision 9f8630eed6ba63a3cac3fe42b6600605d289fac8) @@ -24,6 +24,7 @@ +