Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs =================================================================== diff -u -r2c7cb8d06324d2471655629110dc12009133417e -r45fecbd01648810e02c1465310a86547c2b11ca7 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 2c7cb8d06324d2471655629110dc12009133417e) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 45fecbd01648810e02c1465310a86547c2b11ca7) @@ -52,7 +52,7 @@ /// /// Creates a new instance of . /// - public WaveConditionsInput() + protected WaveConditionsInput() { orientation = new RoundedDouble(orientationNumberOfDecimals, double.NaN); Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter.cs =================================================================== diff -u --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter.cs (revision 0) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter.cs (revision 45fecbd01648810e02c1465310a86547c2b11ca7) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2017. 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; +using System.Collections.Generic; +using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.DikeProfiles; +using Ringtoets.Common.Data.Hydraulics; +using Ringtoets.Revetment.Data; + +namespace Ringtoets.Revetment.IO.Configurations +{ + /// + /// Imports a wave conditions calculation configuration from an XML file and stores it on a + /// . + /// + /// The type of the calculation to import. + public class AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter : WaveConditionsCalculationConfigurationImporter + where T : ICalculation, new() + { + /// + /// Creates a new instance of . + /// + /// The path to the XML file to import from. + /// The calculation group to update. + /// The hydraulic boundary locations + /// used to check if the imported objects contain the right location. + /// The foreshore profiles used to check if + /// the imported objects contain the right profile. + /// Thrown when any parameter is + /// null. + public AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter(string xmlFilePath, + CalculationGroup importTarget, + IEnumerable hydraulicBoundaryLocations, + IEnumerable foreshoreProfiles) + : base(xmlFilePath, importTarget, hydraulicBoundaryLocations, foreshoreProfiles) {} + } +} \ No newline at end of file Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj =================================================================== diff -u -r85b7f2b6d2eec9850c023e7146a64f6250e9ba6d -r45fecbd01648810e02c1465310a86547c2b11ca7 --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj (.../Ringtoets.Revetment.IO.csproj) (revision 85b7f2b6d2eec9850c023e7146a64f6250e9ba6d) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj (.../Ringtoets.Revetment.IO.csproj) (revision 45fecbd01648810e02c1465310a86547c2b11ca7) @@ -19,6 +19,7 @@ + Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporterTest.cs =================================================================== diff -u --- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporterTest.cs (revision 0) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporterTest.cs (revision 45fecbd01648810e02c1465310a86547c2b11ca7) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2017. 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.Linq; +using NUnit.Framework; +using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.DikeProfiles; +using Ringtoets.Common.Data.Hydraulics; +using Ringtoets.Revetment.Data; +using Ringtoets.Revetment.Data.TestUtil; +using Ringtoets.Revetment.IO.Configurations; + +namespace Ringtoets.Revetment.IO.Test.Configurations +{ + [TestFixture] + public class AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporterTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var importer = new AssessmentSectionCategoryWaveConditionsCalculationConfigurationImporter( + "", + new CalculationGroup(), + Enumerable.Empty(), + Enumerable.Empty()); + + // Assert + Assert.IsInstanceOf>(importer); + } + + private class TestTargetTestWaveConditionsCalculation : TestWaveConditionsCalculation + { + public TestTargetTestWaveConditionsCalculation() + : base(new AssessmentSectionCategoryWaveConditionsInput()) { } + } + } +} \ No newline at end of file Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj =================================================================== diff -u -rbb81cbc775643d95f096bddf5e5dbdae234cf921 -r45fecbd01648810e02c1465310a86547c2b11ca7 --- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision bb81cbc775643d95f096bddf5e5dbdae234cf921) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision 45fecbd01648810e02c1465310a86547c2b11ca7) @@ -18,6 +18,7 @@ +