Index: Riskeer/HydraRing/src/Riskeer.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadTrack.cs
===================================================================
diff -u
--- Riskeer/HydraRing/src/Riskeer.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadTrack.cs (revision 0)
+++ Riskeer/HydraRing/src/Riskeer.HydraRing.IO/HydraulicLocationConfigurationDatabase/ReadTrack.cs (revision 1214fcf8a5e7fab9bdb5621c81929b4c3960c85c)
@@ -0,0 +1,57 @@
+// Copyright (C) Stichting Deltares 2022. 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.HydraRing.IO.HydraulicLocationConfigurationDatabase
+{
+ ///
+ /// Container for read track information.
+ ///
+ public class ReadTrack
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The track id.
+ /// The HRD file name.
+ /// Indicator whether to use the preprocessor closure.
+ internal ReadTrack(long trackId, string hrdFileName, bool usePreprocessorClosure)
+ {
+ TrackId = trackId;
+ HrdFileName = hrdFileName;
+ UsePreprocessorClosure = usePreprocessorClosure;
+ }
+
+ ///
+ /// Gets the track id.
+ ///
+ public long TrackId { get; }
+
+ ///
+ /// Gets the HRD file name.
+ ///
+ public string HrdFileName { get; }
+
+ ///
+ /// Gets the indicator whether to use the preprocessor closure.
+ ///
+ public bool UsePreprocessorClosure { get; }
+ }
+}
\ No newline at end of file
Index: Riskeer/HydraRing/test/Riskeer.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadTrackTest.cs
===================================================================
diff -u
--- Riskeer/HydraRing/test/Riskeer.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadTrackTest.cs (revision 0)
+++ Riskeer/HydraRing/test/Riskeer.HydraRing.IO.Test/HydraulicLocationConfigurationDatabase/ReadTrackTest.cs (revision 1214fcf8a5e7fab9bdb5621c81929b4c3960c85c)
@@ -0,0 +1,50 @@
+// Copyright (C) Stichting Deltares 2022. 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 System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Riskeer.HydraRing.IO.HydraulicLocationConfigurationDatabase;
+
+namespace Riskeer.HydraRing.IO.Test.HydraulicLocationConfigurationDatabase
+{
+ [TestFixture]
+ public class ReadTrackTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ long trackId = random.Next();
+ var hrdFileName = random.Next().ToString();
+ bool usePreprocessorClosure = random.NextBoolean();
+
+ // Call
+ var readTrack = new ReadTrack(trackId, hrdFileName, usePreprocessorClosure);
+
+ // Assert
+ Assert.AreEqual(trackId, readTrack.TrackId);
+ Assert.AreEqual(hrdFileName, readTrack.HrdFileName);
+ Assert.AreEqual(trackId, readTrack.UsePreprocessorClosure);
+ }
+ }
+}
\ No newline at end of file