Index: Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicBoundaryDatabaseMeta.cs =================================================================== diff -u --- Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicBoundaryDatabaseMeta.cs (revision 0) +++ Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicBoundaryDatabaseMeta.cs (revision 690a0e75c443dae83e1c15143e4b42a8bd7c42be) @@ -0,0 +1,57 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 Riskeer.Common.Data.Hydraulics +{ + /// + /// Wrapper class representing the meta data used as a basis for importing a hydraulic boundary database. + /// + public class HydraulicBoundaryDatabaseMeta + { + /// + /// Creates a new instance of . + /// + /// The path to the HLCD file. + /// The path to the HRD directory. + /// The path to the locations file. + public HydraulicBoundaryDatabaseMeta(string hlcdFilePath, string hrdDirectoryPath, string locationsFilePath) + { + HlcdFilePath = hlcdFilePath; + HrdDirectoryPath = hrdDirectoryPath; + LocationsFilePath = locationsFilePath; + } + + /// + /// Gets the path to the HLCD file. + /// + public string HlcdFilePath { get; } + + /// + /// Gets the path to the HRD directory. + /// + public string HrdDirectoryPath { get; } + + /// + /// Gets the path to the locations file. + /// + public string LocationsFilePath { get; } + } +} Index: Riskeer/Common/test/Riskeer.Common.Data.Test/Hydraulics/HydraulicBoundaryDatabaseMetaTest.cs =================================================================== diff -u --- Riskeer/Common/test/Riskeer.Common.Data.Test/Hydraulics/HydraulicBoundaryDatabaseMetaTest.cs (revision 0) +++ Riskeer/Common/test/Riskeer.Common.Data.Test/Hydraulics/HydraulicBoundaryDatabaseMetaTest.cs (revision 690a0e75c443dae83e1c15143e4b42a8bd7c42be) @@ -0,0 +1,47 @@ +// Copyright (C) Stichting Deltares 2019. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer 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 NUnit.Framework; +using Riskeer.Common.Data.Hydraulics; + +namespace Riskeer.Common.Data.Test.Hydraulics +{ + [TestFixture] + public class HydraulicBoundaryDatabaseMetaTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + const string hlcdFilePath = "Path 1"; + const string hrdDirectoryPath = "Path 2"; + const string locationsFilePath = "Path 3"; + + // Call + var hydraulicBoundaryDatabaseMeta = new HydraulicBoundaryDatabaseMeta(hlcdFilePath, hrdDirectoryPath, locationsFilePath); + + // Assert + Assert.AreEqual(hlcdFilePath, hydraulicBoundaryDatabaseMeta.HlcdFilePath); + Assert.AreEqual(hrdDirectoryPath, hydraulicBoundaryDatabaseMeta.HrdDirectoryPath); + Assert.AreEqual(locationsFilePath, hydraulicBoundaryDatabaseMeta.LocationsFilePath); + } + } +}