Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfiguration.cs
===================================================================
diff -u
--- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfiguration.cs (revision 0)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfiguration.cs (revision 20c65ac0ff84cd91451edd8857d709df26dc4d12)
@@ -0,0 +1,45 @@
+// 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;
+
+namespace Ringtoets.Revetment.IO.Configurations
+{
+ ///
+ /// Class that represents a wave conditions calculation configuration
+ /// containing .
+ ///
+ public class AssessmentSectionCategoryWaveConditionsCalculationConfiguration : WaveConditionsCalculationConfiguration
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The name of the .
+ /// Thrown when is null.
+ public AssessmentSectionCategoryWaveConditionsCalculationConfiguration(string name)
+ : base(name) {}
+
+ ///
+ /// Gets or sets the category type.
+ ///
+ public ConfigurationAssessmentSectionCategoryType? CategoryType { get; set; }
+ }
+}
Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj
===================================================================
diff -u -r9d30a6db5d01e1bec5d3f107b4a3c6263a2c3089 -r20c65ac0ff84cd91451edd8857d709df26dc4d12
--- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj (.../Ringtoets.Revetment.IO.csproj) (revision 9d30a6db5d01e1bec5d3f107b4a3c6263a2c3089)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Ringtoets.Revetment.IO.csproj (.../Ringtoets.Revetment.IO.csproj) (revision 20c65ac0ff84cd91451edd8857d709df26dc4d12)
@@ -17,6 +17,7 @@
+
Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationTest.cs
===================================================================
diff -u
--- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationTest.cs (revision 0)
+++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/AssessmentSectionCategoryWaveConditionsCalculationConfigurationTest.cs (revision 20c65ac0ff84cd91451edd8857d709df26dc4d12)
@@ -0,0 +1,63 @@
+// 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 Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Revetment.IO.Configurations;
+
+namespace Ringtoets.Revetment.IO.Test.Configurations
+{
+ [TestFixture]
+ public class AssessmentSectionCategoryWaveConditionsCalculationConfigurationTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ const string name = "some name";
+
+ // Call
+ var configuration = new AssessmentSectionCategoryWaveConditionsCalculationConfiguration(name);
+
+ // Assert
+ Assert.IsInstanceOf(configuration);
+ Assert.IsNull(configuration.CategoryType);
+ }
+
+ [Test]
+ public void SimpleProperties_SetNewValues_NewValuesSet()
+ {
+ // Setup
+ const string calculationName = "Name of the calculation";
+ var categoryType = new Random(21).NextEnumValue();
+
+ // Call
+ var configuration = new AssessmentSectionCategoryWaveConditionsCalculationConfiguration(calculationName)
+ {
+ CategoryType = categoryType
+ };
+
+ // Assert
+ Assert.AreEqual(categoryType, configuration.CategoryType);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/WaveConditionsCalculationConfigurationTest.cs
===================================================================
diff -u -r9d03e0c94adad4bcb57a0b7135f8891c255c5f52 -r20c65ac0ff84cd91451edd8857d709df26dc4d12
--- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/WaveConditionsCalculationConfigurationTest.cs (.../WaveConditionsCalculationConfigurationTest.cs) (revision 9d03e0c94adad4bcb57a0b7135f8891c255c5f52)
+++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Configurations/WaveConditionsCalculationConfigurationTest.cs (.../WaveConditionsCalculationConfigurationTest.cs) (revision 20c65ac0ff84cd91451edd8857d709df26dc4d12)
@@ -43,7 +43,7 @@
public void Constructor_WithName_ExpectedValues()
{
// Setup
- var name = "some name";
+ const string name = "some name";
// Call
var readCalculation = new WaveConditionsCalculationConfiguration(name);
Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj
===================================================================
diff -u -r9d30a6db5d01e1bec5d3f107b4a3c6263a2c3089 -r20c65ac0ff84cd91451edd8857d709df26dc4d12
--- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision 9d30a6db5d01e1bec5d3f107b4a3c6263a2c3089)
+++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision 20c65ac0ff84cd91451edd8857d709df26dc4d12)
@@ -16,6 +16,7 @@
+