Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/HydraulicBoundaryDatabaseTestHelperTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/HydraulicBoundaryDatabaseTestHelperTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/HydraulicBoundaryDatabaseTestHelperTest.cs (revision be6b3873790ec0b749da48371257ade3a2af05bf) @@ -0,0 +1,53 @@ +// 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 NUnit.Framework; +using Ringtoets.Common.Data.Hydraulics; + +namespace Ringtoets.Common.Data.TestUtil.Test +{ + [TestFixture] + public class HydraulicBoundaryDatabaseTestHelperTest + { + [Test] + public void SetHydraulicBoundaryLocationConfigurationSettings_Always_SetsExpectedValues() + { + // Setup + var hydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); + + // Call + HydraulicBoundaryDatabaseTestHelper.SetHydraulicBoundaryLocationConfigurationSettings(hydraulicBoundaryDatabase); + + // Assert + HydraulicLocationConfigurationSettings settings = hydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings; + Assert.AreEqual("some\\Path\\ToHlcd", settings.FilePath); + Assert.AreEqual("ScenarioName", settings.ScenarioName); + Assert.AreEqual(1337, settings.Year); + Assert.AreEqual("Scope", settings.Scope); + Assert.AreEqual("SeaLevel", settings.SeaLevel); + Assert.AreEqual("RiverDischarge", settings.RiverDischarge); + Assert.AreEqual("LakeLevel", settings.LakeLevel); + Assert.AreEqual("WindDirection", settings.WindDirection); + Assert.AreEqual("WindSpeed", settings.WindSpeed); + Assert.AreEqual("Comment", settings.Comment); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj =================================================================== diff -u -rd0ebdbcb4c8da9ca55762a09768199f0f7fdcba2 -rbe6b3873790ec0b749da48371257ade3a2af05bf --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision d0ebdbcb4c8da9ca55762a09768199f0f7fdcba2) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision be6b3873790ec0b749da48371257ade3a2af05bf) @@ -25,6 +25,7 @@ + Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/HydraulicBoundaryDatabaseTestHelper.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/HydraulicBoundaryDatabaseTestHelper.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/HydraulicBoundaryDatabaseTestHelper.cs (revision be6b3873790ec0b749da48371257ade3a2af05bf) @@ -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 Ringtoets.Common.Data.Hydraulics; + +namespace Ringtoets.Common.Data.TestUtil +{ + /// + /// Test helper for dealing with the + /// + public static class HydraulicBoundaryDatabaseTestHelper + { + /// + /// Sets valid values on the . + /// + /// The to set the values to. + public static void SetHydraulicBoundaryLocationConfigurationSettings(HydraulicBoundaryDatabase hydraulicBoundaryDatabase) + { + hydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings.SetValues("some\\Path\\ToHlcd", + "ScenarioName", + 1337, + "Scope", + "SeaLevel", + "RiverDischarge", + "LakeLevel", + "WindDirection", + "WindSpeed", + "Comment"); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj =================================================================== diff -u -rd0ebdbcb4c8da9ca55762a09768199f0f7fdcba2 -rbe6b3873790ec0b749da48371257ade3a2af05bf --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision d0ebdbcb4c8da9ca55762a09768199f0f7fdcba2) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision be6b3873790ec0b749da48371257ade3a2af05bf) @@ -32,6 +32,7 @@ +