Index: Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporter.cs =================================================================== diff -u --- Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporter.cs (revision 0) +++ Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporter.cs (revision c3f85ca41c84baea7d69ac72667cb5d0404eceee) @@ -0,0 +1,61 @@ +// 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 System; +using System.Collections.Generic; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Data.Contribution; +using Riskeer.Common.Data.DikeProfiles; +using Riskeer.Common.Data.Hydraulics; +using Riskeer.Revetment.IO.Configurations; +using Riskeer.StabilityStoneCover.Data; + +namespace Riskeer.StabilityStoneCover.IO.Configurations +{ + /// + /// Imports a stability stone cover wave conditions calculation configuration from an XML file and stores it on a + /// . + /// + public class StabilityStoneCoverWaveConditionsCalculationConfigurationImporter : WaveConditionsCalculationConfigurationImporter< + StabilityStoneCoverWaveConditionsCalculation, + StabilityStoneCoverWaveConditionsCalculationConfigurationReader, + StabilityStoneCoverWaveConditionsCalculationConfiguration> + { + /// + /// + /// Creates a new instance of . + /// + public StabilityStoneCoverWaveConditionsCalculationConfigurationImporter(string xmlFilePath, CalculationGroup importTarget, + IEnumerable hydraulicBoundaryLocations, + IEnumerable foreshoreProfiles, NormType normType) + : base(xmlFilePath, importTarget, hydraulicBoundaryLocations, foreshoreProfiles, normType) {} + + protected override StabilityStoneCoverWaveConditionsCalculationConfigurationReader CreateCalculationConfigurationReader(string xmlFilePath) + { + throw new NotImplementedException(); + } + + protected override void SetCategoryType(StabilityStoneCoverWaveConditionsCalculationConfiguration calculationConfiguration, StabilityStoneCoverWaveConditionsCalculation calculation, NormType normType) + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file Index: Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Riskeer.StabilityStoneCover.IO.csproj =================================================================== diff -u -r3c9132daa21ce989a9d9452d139e403acdd7edcc -rc3f85ca41c84baea7d69ac72667cb5d0404eceee --- Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Riskeer.StabilityStoneCover.IO.csproj (.../Riskeer.StabilityStoneCover.IO.csproj) (revision 3c9132daa21ce989a9d9452d139e403acdd7edcc) +++ Riskeer/StabilityStoneCover/src/Riskeer.StabilityStoneCover.IO/Riskeer.StabilityStoneCover.IO.csproj (.../Riskeer.StabilityStoneCover.IO.csproj) (revision c3f85ca41c84baea7d69ac72667cb5d0404eceee) @@ -17,6 +17,7 @@ + Index: Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporterTest.cs =================================================================== diff -u --- Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporterTest.cs (revision 0) +++ Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Configurations/StabilityStoneCoverWaveConditionsCalculationConfigurationImporterTest.cs (revision c3f85ca41c84baea7d69ac72667cb5d0404eceee) @@ -0,0 +1,60 @@ +// 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 System; +using System.Linq; +using Core.Common.TestUtil; +using NUnit.Framework; +using Riskeer.Common.Data.Calculation; +using Riskeer.Common.Data.Contribution; +using Riskeer.Common.Data.DikeProfiles; +using Riskeer.Common.Data.Hydraulics; +using Riskeer.Revetment.IO.Configurations; +using Riskeer.StabilityStoneCover.Data; +using Riskeer.StabilityStoneCover.IO.Configurations; + +namespace Riskeer.StabilityStoneCover.IO.Test.Configurations +{ + [TestFixture] + public class StabilityStoneCoverWaveConditionsCalculationConfigurationImporterTest + { + private readonly string path = TestHelper.GetTestDataPath(TestDataPath.Riskeer.StabilityStoneCover.IO, + nameof(StabilityStoneCoverWaveConditionsCalculationConfigurationImporter)); + + [Test] + public void Constructor_ExpectedValues() + { + // Call + var importer = new StabilityStoneCoverWaveConditionsCalculationConfigurationImporter( + "", + new CalculationGroup(), + Enumerable.Empty(), + Enumerable.Empty(), + new Random(39).NextEnumValue()); + + // Assert + Assert.IsInstanceOf>(importer); + } + } +} \ No newline at end of file Index: Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Riskeer.StabilityStoneCover.IO.Test.csproj =================================================================== diff -u -r044b0bee4da1078f6ac23d143a4bb6d778b50a92 -rc3f85ca41c84baea7d69ac72667cb5d0404eceee --- Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Riskeer.StabilityStoneCover.IO.Test.csproj (.../Riskeer.StabilityStoneCover.IO.Test.csproj) (revision 044b0bee4da1078f6ac23d143a4bb6d778b50a92) +++ Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.IO.Test/Riskeer.StabilityStoneCover.IO.Test.csproj (.../Riskeer.StabilityStoneCover.IO.Test.csproj) (revision c3f85ca41c84baea7d69ac72667cb5d0404eceee) @@ -19,6 +19,7 @@ +