Index: Riskeer/Common/src/Riskeer.Common.Forms/TreeNodeInfos/CalculationType.cs =================================================================== diff -u --- Riskeer/Common/src/Riskeer.Common.Forms/TreeNodeInfos/CalculationType.cs (revision 0) +++ Riskeer/Common/src/Riskeer.Common.Forms/TreeNodeInfos/CalculationType.cs (revision 5a07ef07b6ace5f9fd87bbcccda2b95683009fcf) @@ -0,0 +1,39 @@ +// 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. + +namespace Riskeer.Common.Forms.TreeNodeInfos +{ + /// + /// Specifies the type of the calculations. + /// + public enum CalculationType + { + /// + /// Defines a semi-probabilistic calculation. + /// + SemiProbabilistic = 1, + + /// + /// Defines a probabilistic calculation. + /// + Probabilistic = 2 + } +} \ No newline at end of file Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/Riskeer.Common.Forms.Test.csproj =================================================================== diff -u -r08e8d26a0715f0f3db57c1d3e86256aa06934db4 -r5a07ef07b6ace5f9fd87bbcccda2b95683009fcf --- Riskeer/Common/test/Riskeer.Common.Forms.Test/Riskeer.Common.Forms.Test.csproj (.../Riskeer.Common.Forms.Test.csproj) (revision 08e8d26a0715f0f3db57c1d3e86256aa06934db4) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/Riskeer.Common.Forms.Test.csproj (.../Riskeer.Common.Forms.Test.csproj) (revision 5a07ef07b6ace5f9fd87bbcccda2b95683009fcf) @@ -10,40 +10,40 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/TreeNodeInfos/CalculationTypeTest.cs =================================================================== diff -u --- Riskeer/Common/test/Riskeer.Common.Forms.Test/TreeNodeInfos/CalculationTypeTest.cs (revision 0) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/TreeNodeInfos/CalculationTypeTest.cs (revision 5a07ef07b6ace5f9fd87bbcccda2b95683009fcf) @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Core.Common.TestUtil; +using NUnit.Framework; +using Riskeer.Common.Forms.TreeNodeInfos; + +namespace Riskeer.Common.Forms.Test.TreeNodeInfos +{ + [TestFixture] + public class CalculationTypeTest : EnumValuesTestFixture + { + protected override IDictionary ExpectedValueForEnumValues => + new Dictionary + { + { + CalculationType.SemiProbabilistic, 1 + }, + { + CalculationType.Probabilistic, 2 + } + }; + } +} \ No newline at end of file