Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanism.cs =================================================================== diff -u -r09c84a48786fe4ac28e40b7fc0470f56e4c00df4 -rff3476b4646da757e0ec892b069b31336cbd520e --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanism.cs (.../DuneErosionFailureMechanism.cs) (revision 09c84a48786fe4ac28e40b7fc0470f56e4c00df4) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanism.cs (.../DuneErosionFailureMechanism.cs) (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -42,6 +42,7 @@ : base(Resources.DuneErosionFailureMechanism_DisplayName, Resources.DuneErosionFailureMechanism_Code) { sectionResults = new List(); + GeneralInput = new GeneralDuneErosionInput(); DuneLocations = new ObservableList(); } @@ -62,6 +63,11 @@ } /// + /// Gets the general dune erosion calculation input parameters that apply to each calculation. + /// + public GeneralDuneErosionInput GeneralInput { get; private set; } + + /// /// Gets the dune locations. /// public ObservableList DuneLocations { get; private set; } Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/GeneralDuneErosionInput.cs =================================================================== diff -u --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/GeneralDuneErosionInput.cs (revision 0) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/GeneralDuneErosionInput.cs (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -0,0 +1,46 @@ +// Copyright (C) Stichting Deltares 2016. 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 Core.Common.Base.Data; + +namespace Ringtoets.DuneErosion.Data +{ + /// + /// Class that holds all the static dune erosion calculation input parameters. + /// + public class GeneralDuneErosionInput + { + #region Length effect parameters + + /// + /// Gets the 'N' parameter used to factor in the 'length effect'. + /// + public RoundedDouble N + { + get + { + return new RoundedDouble(1, 2); + } + } + + #endregion + } +} \ No newline at end of file Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/Ringtoets.DuneErosion.Data.csproj =================================================================== diff -u -r861341a7835c17ca6309ff1b6e0b8fe2269b5c0f -rff3476b4646da757e0ec892b069b31336cbd520e --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/Ringtoets.DuneErosion.Data.csproj (.../Ringtoets.DuneErosion.Data.csproj) (revision 861341a7835c17ca6309ff1b6e0b8fe2269b5c0f) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/Ringtoets.DuneErosion.Data.csproj (.../Ringtoets.DuneErosion.Data.csproj) (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -43,6 +43,7 @@ + True Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismTest.cs =================================================================== diff -u -r09c84a48786fe4ac28e40b7fc0470f56e4c00df4 -rff3476b4646da757e0ec892b069b31336cbd520e --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismTest.cs (.../DuneErosionFailureMechanismTest.cs) (revision 09c84a48786fe4ac28e40b7fc0470f56e4c00df4) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismTest.cs (.../DuneErosionFailureMechanismTest.cs) (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -41,6 +41,7 @@ Assert.AreEqual("DA", failureMechanism.Code); CollectionAssert.IsEmpty(failureMechanism.Sections); CollectionAssert.IsEmpty(failureMechanism.DuneLocations); + Assert.IsNotNull(failureMechanism.GeneralInput); } [Test] Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/GeneralDuneErosionInputTest.cs =================================================================== diff -u --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/GeneralDuneErosionInputTest.cs (revision 0) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/GeneralDuneErosionInputTest.cs (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -0,0 +1,40 @@ +// Copyright (C) Stichting Deltares 2016. 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; + +namespace Ringtoets.DuneErosion.Data.Test +{ + [TestFixture] + public class GeneralDuneErosionInputTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var generalInput = new GeneralDuneErosionInput(); + + // Assert + Assert.AreEqual(2, generalInput.N.Value); + Assert.AreEqual(1, generalInput.N.NumberOfDecimalPlaces); + } + } +} \ No newline at end of file Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/Ringtoets.DuneErosion.Data.Test.csproj =================================================================== diff -u -r861341a7835c17ca6309ff1b6e0b8fe2269b5c0f -rff3476b4646da757e0ec892b069b31336cbd520e --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/Ringtoets.DuneErosion.Data.Test.csproj (.../Ringtoets.DuneErosion.Data.Test.csproj) (revision 861341a7835c17ca6309ff1b6e0b8fe2269b5c0f) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/Ringtoets.DuneErosion.Data.Test.csproj (.../Ringtoets.DuneErosion.Data.Test.csproj) (revision ff3476b4646da757e0ec892b069b31336cbd520e) @@ -53,6 +53,7 @@ +