Index: Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/GeneralResultTestFactory.cs
===================================================================
diff -u -r9e9976818f1b446948c3bf815cafe2e023f98ac1 -r1e546384bf995c241a4fed48779922c20cbc7167
--- Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/GeneralResultTestFactory.cs (.../GeneralResultTestFactory.cs) (revision 9e9976818f1b446948c3bf815cafe2e023f98ac1)
+++ Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/GeneralResultTestFactory.cs (.../GeneralResultTestFactory.cs) (revision 1e546384bf995c241a4fed48779922c20cbc7167)
@@ -24,23 +24,27 @@
namespace Riskeer.HydraRing.Calculation.TestUtil.IllustrationPoints
{
+ ///
+ /// Factory for creating instances.
+ ///
public static class GeneralResultTestFactory
{
///
- /// Creates a new instance of
- /// with duplicate stochasts.
+ /// Creates a new instance of with duplicate stochasts.
///
/// A with duplicate stochasts.
public static GeneralResult CreateGeneralResultWithDuplicateStochasts()
{
var stochast = new Stochast("Stochast A", 0, 0);
- Stochast[] stochasts =
- {
- stochast,
- stochast
- };
- var illustrationPoints = new Dictionary();
- return new GeneralResult(0.5, new TestWindDirection(), stochasts, illustrationPoints);
+
+ return new GeneralResult(0.5,
+ new TestWindDirection(),
+ new[]
+ {
+ stochast,
+ stochast
+ },
+ new Dictionary());
}
}
}
\ No newline at end of file
Index: Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/WindDirectionTestFactory.cs
===================================================================
diff -u
--- Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/WindDirectionTestFactory.cs (revision 0)
+++ Riskeer/HydraRing/test/Riskeer.HydraRing.Calculation.TestUtil/IllustrationPoints/WindDirectionTestFactory.cs (revision 1e546384bf995c241a4fed48779922c20cbc7167)
@@ -0,0 +1,40 @@
+// Copyright (C) Stichting Deltares 2022. 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 Riskeer.HydraRing.Calculation.Data.Output.IllustrationPoints;
+
+namespace Riskeer.HydraRing.Calculation.TestUtil.IllustrationPoints
+{
+ ///
+ /// Factory for creating instances.
+ ///
+ public static class WindDirectionTestFactory
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// A .
+ public static WindDirection CreateWindDirection()
+ {
+ return new WindDirection("SSE", 123);
+ }
+ }
+}
\ No newline at end of file