Index: Core/Common/src/Core.Common.Gui/Converters/KeyValueExpandableArrayConverter.cs
===================================================================
diff -u -rca27aee933103177a29a8d2ab46e127dbb8bacf6 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Core/Common/src/Core.Common.Gui/Converters/KeyValueExpandableArrayConverter.cs (.../KeyValueExpandableArrayConverter.cs) (revision ca27aee933103177a29a8d2ab46e127dbb8bacf6)
+++ Core/Common/src/Core.Common.Gui/Converters/KeyValueExpandableArrayConverter.cs (.../KeyValueExpandableArrayConverter.cs) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -26,6 +26,10 @@
namespace Core.Common.Gui.Converters
{
+ ///
+ /// Defines a converter for arrays with elements. Properties generated for the array elements uses one
+ /// of the element's properties as a name and one of the element's properties as a value.
+ ///
public class KeyValueExpandableArrayConverter : ArrayConverter
{
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -r2b62d771a30ac4a3a59b52efc9df88afbc6663b2 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 2b62d771a30ac4a3a59b52efc9df88afbc6663b2)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -1638,7 +1638,7 @@
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Het sluitscenario waarvoor dit illustratiepunt is berekend..
///
public static string IllustrationPoint_ClosingSituation_Description {
get {
@@ -1647,7 +1647,7 @@
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Sluitscenario.
///
public static string IllustrationPoint_ClosingSituation_DisplayName {
get {
@@ -1656,88 +1656,16 @@
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Realisaties van de stochasten in het illustratiepunt..
///
- public static string IllustrationPoint_Durations_Description {
- get {
- return ResourceManager.GetString("IllustrationPoint_Durations_Description", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Durations_DisplayName {
- get {
- return ResourceManager.GetString("IllustrationPoint_Durations_DisplayName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Probability_Description {
- get {
- return ResourceManager.GetString("IllustrationPoint_Probability_Description", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Probability_DisplayName {
- get {
- return ResourceManager.GetString("IllustrationPoint_Probability_DisplayName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Reliability_index_Description {
- get {
- return ResourceManager.GetString("IllustrationPoint_Reliability_index_Description", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Reliability_index_DisplayName {
- get {
- return ResourceManager.GetString("IllustrationPoint_Reliability_index_DisplayName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Stochasts_Description {
- get {
- return ResourceManager.GetString("IllustrationPoint_Stochasts_Description", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
- public static string IllustrationPoint_Stochasts_DisplayName {
- get {
- return ResourceManager.GetString("IllustrationPoint_Stochasts_DisplayName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to .
- ///
public static string IllustrationPoint_Values_Description {
get {
return ResourceManager.GetString("IllustrationPoint_Values_Description", resourceCulture);
}
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Waarden in het illustratiepunt.
///
public static string IllustrationPoint_Values_DisplayName {
get {
@@ -1746,7 +1674,7 @@
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to De windrichting waarvoor dit illlustratiepunt is berekend..
///
public static string IllustrationPoint_WindDirection_Description {
get {
@@ -1755,7 +1683,7 @@
}
///
- /// Looks up a localized string similar to .
+ /// Looks up a localized string similar to Windrichting.
///
public static string IllustrationPoint_WindDirection_DisplayName {
get {
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx
===================================================================
diff -u -r2b62d771a30ac4a3a59b52efc9df88afbc6663b2 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (.../Resources.resx) (revision 2b62d771a30ac4a3a59b52efc9df88afbc6663b2)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (.../Resources.resx) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -1024,45 +1024,21 @@
Alfa's
-
+ Het sluitscenario waarvoor dit illustratiepunt is berekend.
-
+ Sluitscenario
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ Realisaties van de stochasten in het illustratiepunt.
-
+ Waarden in het illustratiepunt
-
+ De windrichting waarvoor dit illlustratiepunt is berekend.
-
+ Windrichting
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs
===================================================================
diff -u -rca27aee933103177a29a8d2ab46e127dbb8bacf6 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs (.../HydraulicBoundaryLocationProperties.cs) (revision ca27aee933103177a29a8d2ab46e127dbb8bacf6)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs (.../HydraulicBoundaryLocationProperties.cs) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -19,11 +19,9 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
-using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
-using Core.Common.Base.Data;
using Core.Common.Base.Geometry;
using Core.Common.Gui.Attributes;
using Core.Common.Gui.Converters;
@@ -193,11 +191,17 @@
[ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_IllustrationPoints_DisplayName))]
[ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_IllustrationPoints_Description))]
[TypeConverter(typeof(ExpandableArrayConverter))]
- public IEnumerable IllustrationPoints
+ public IEnumerable IllustrationPoints
{
get
{
- return GetGeneralIllustrationPointsResult().WindDirectionClosingSituationIllustrationPoints;
+ return GetGeneralIllustrationPointsResult()
+ .WindDirectionClosingSituationIllustrationPoints
+ .Select(p => new WindDirectionClosingSituationIllustrationPointProperties
+ {
+ Data = p
+ })
+ .ToArray();
}
}
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WindDirectionClosingSituationIllustrationPointProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WindDirectionClosingSituationIllustrationPointProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WindDirectionClosingSituationIllustrationPointProperties.cs (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -0,0 +1,134 @@
+// 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.ComponentModel;
+using System.Linq;
+using Core.Common.Base.Data;
+using Core.Common.Gui.Attributes;
+using Core.Common.Gui.Converters;
+using Core.Common.Gui.PropertyBag;
+using Core.Common.Utils;
+using Core.Common.Utils.Attributes;
+using Ringtoets.Common.Data.Hydraulics.IllustrationPoints;
+using Ringtoets.Common.Forms.TypeConverters;
+
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of for properties panel.
+ ///
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ public class WindDirectionClosingSituationIllustrationPointProperties : ObjectProperties
+ {
+ [PropertyOrder(1)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_Description))]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ public double CalculatedProbability
+ {
+ get
+ {
+ return StatisticsConverter.ReliabilityToProbability(data.IllustrationPoint.Beta);
+
+ }
+ }
+
+ [PropertyOrder(2)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble CalculatedReliability
+ {
+ get
+ {
+ return data.IllustrationPoint.Beta;
+ }
+ }
+
+ [PropertyOrder(3)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_WindDirection_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_WindDirection_Description))]
+ public string WindDirection
+ {
+ get
+ {
+ return data.WindDirection.Name;
+ }
+ }
+
+ [PropertyOrder(4)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_ClosingSituation_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_ClosingSituation_Description))]
+ public string ClosingSituation
+ {
+ get
+ {
+ return data.ClosingSituation;
+ }
+ }
+
+ [PropertyOrder(5)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_AlphaValues_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_AlphaValues_Description))]
+ [TypeConverter(typeof(KeyValueExpandableArrayConverter))]
+ [KeyValueElement(nameof(RealizedStochast.Name), nameof(RealizedStochast.Alpha))]
+ public RealizedStochast[] AlphaValues
+ {
+ get
+ {
+ return data.IllustrationPoint.Stochasts.ToArray();
+ }
+ }
+
+ [PropertyOrder(6)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Durations_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Durations_Description))]
+ [TypeConverter(typeof(KeyValueExpandableArrayConverter))]
+ [KeyValueElement(nameof(RealizedStochast.Name), nameof(RealizedStochast.Duration))]
+ public RealizedStochast[] Durations
+ {
+ get
+ {
+ return data.IllustrationPoint.Stochasts.ToArray();
+ }
+ }
+
+ [PropertyOrder(7)]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_Values_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.IllustrationPoint_Values_Description))]
+ [TypeConverter(typeof(KeyValueExpandableArrayConverter))]
+ [KeyValueElement(nameof(IllustrationPointResult.Description), nameof(IllustrationPointResult.Value))]
+ public IllustrationPointResult[] IllustrationPointResults
+ {
+ get
+ {
+ return data.IllustrationPoint.IllustrationPointResults.ToArray();
+ }
+ }
+
+ public override string ToString()
+ {
+ return $"{data.IllustrationPoint.Name}";
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj
===================================================================
diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -79,6 +79,7 @@
+
Form
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs
===================================================================
diff -u -r2b62d771a30ac4a3a59b52efc9df88afbc6663b2 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision 2b62d771a30ac4a3a59b52efc9df88afbc6663b2)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -155,14 +155,18 @@
true);
TestHelper.AssertTypeConverter(nameof(HydraulicBoundaryLocationProperties.AlphaValues));
- PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[4],
+ PropertyDescriptor alphaValuesProperty = dynamicProperties[4];
+ Assert.NotNull(alphaValuesProperty.Attributes[typeof(KeyValueElementAttribute)]);
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(alphaValuesProperty,
illustrationPointsCategory,
"Alfa's",
"Berekende invloedscoëfficiënten voor alle beschouwde stochasten.",
true);
TestHelper.AssertTypeConverter(nameof(HydraulicBoundaryLocationProperties.Durations));
- PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[5],
+ PropertyDescriptor durationsProperty = dynamicProperties[5];
+ Assert.NotNull(durationsProperty.Attributes[typeof(KeyValueElementAttribute)]);
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(durationsProperty,
illustrationPointsCategory,
"Tijdsduren",
"Tijdsduren waarop de stochasten betrekking hebben.",
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/WindDirectionClosingSituationIllustrationPointPropertiesTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/WindDirectionClosingSituationIllustrationPointPropertiesTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/WindDirectionClosingSituationIllustrationPointPropertiesTest.cs (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -0,0 +1,165 @@
+// 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.Collections.Generic;
+using System.ComponentModel;
+using Core.Common.Base.Geometry;
+using Core.Common.Gui.Converters;
+using Core.Common.Gui.PropertyBag;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.Data.Hydraulics.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
+using Ringtoets.Integration.Forms.PropertyClasses;
+using System;
+using System.Linq;
+
+namespace Ringtoets.Integration.Forms.Test.PropertyClasses
+{
+ [TestFixture]
+ public class WindDirectionClosingSituationIllustrationPointPropertiesTest
+ {
+
+ [Test]
+ public void Constructor_DefaultArgumentValues_DoesNotThrowException()
+ {
+ // Call
+ var properties = new WindDirectionClosingSituationIllustrationPointProperties();
+
+ // Assert
+ Assert.IsInstanceOf>(properties);
+ }
+
+ [Test]
+ [TestCase("north")]
+ [TestCase("some random name")]
+ public void ToString_WithName_ReturnsCombinationOfWindDirectionAndClosingSituation(string name)
+ {
+ // Setup
+ var illustrationPoint = new IllustrationPoint(name, Enumerable.Empty(), Enumerable.Empty(), 3);
+ var context = new WindDirectionClosingSituationIllustrationPoint(new TestWindDirection(), "direction", illustrationPoint);
+
+ // Call
+ var hydraulicBoundaryLocationProperties = new WindDirectionClosingSituationIllustrationPointProperties
+ {
+ Data = context
+ };
+
+ // Assert
+ Assert.AreEqual(name, hydraulicBoundaryLocationProperties.ToString());
+ }
+
+
+ [Test]
+ public void GetProperties_ValidData_ReturnsExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ double beta = random.NextDouble();
+ var stochasts = new[]
+ {
+ new RealizedStochast("some name", random.NextDouble(), random.NextDouble(), random.NextDouble())
+ };
+ var illustrationPointResults = new[]
+ {
+ new IllustrationPointResult("some description", random.NextDouble())
+ };
+ var illustrationPoint = new IllustrationPoint("name", stochasts, illustrationPointResults, beta);
+
+ const string closingSituation = "closingSituation";
+ const string windDirectionName = "windDirection";
+ var windDirection = new WindDirection(windDirectionName, 123);
+
+ var context = new WindDirectionClosingSituationIllustrationPoint(windDirection, closingSituation, illustrationPoint);
+
+ // Call
+ var properties = new WindDirectionClosingSituationIllustrationPointProperties
+ {
+ Data = context
+ };
+
+ // Assert
+ Assert.AreEqual(windDirectionName, properties.WindDirection);
+ Assert.AreEqual(closingSituation, properties.ClosingSituation);
+ CollectionAssert.AreEqual(illustrationPoint.Stochasts, properties.AlphaValues);
+ CollectionAssert.AreEqual(illustrationPoint.Stochasts, properties.Durations);
+ CollectionAssert.AreEqual(illustrationPoint.IllustrationPointResults, properties.IllustrationPointResults);
+
+ TypeConverter classTypeConverter = TypeDescriptor.GetConverter(properties, true);
+ Assert.IsInstanceOf(classTypeConverter);
+
+ PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties);
+ Assert.AreEqual(7, dynamicProperties.Count);
+ const string miscCategory = "Misc";
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[0],
+ miscCategory,
+ "Berekende kans [1/jaar]",
+ "De berekende kans van voorkomen van het berekende resultaat.",
+ true);
+
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[1],
+ miscCategory,
+ "Betrouwbaarheidsindex berekende kans [-]",
+ "Betrouwbaarheidsindex van de berekende kans van voorkomen van het berekende resultaat.",
+ true);
+
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[2],
+ miscCategory,
+ "Windrichting",
+ "De windrichting waarvoor dit illlustratiepunt is berekend.",
+ true);
+
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(dynamicProperties[3],
+ miscCategory,
+ "Sluitscenario",
+ "Het sluitscenario waarvoor dit illustratiepunt is berekend.",
+ true);
+
+ TestHelper.AssertTypeConverter(nameof(WindDirectionClosingSituationIllustrationPointProperties.AlphaValues));
+ PropertyDescriptor alphaValuesProperty = dynamicProperties[4];
+ Assert.NotNull(alphaValuesProperty.Attributes[typeof(KeyValueElementAttribute)]);
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(alphaValuesProperty,
+ miscCategory,
+ "Alfa's",
+ "Berekende invloedscoëfficiënten voor alle beschouwde stochasten.",
+ true);
+
+ TestHelper.AssertTypeConverter(nameof(WindDirectionClosingSituationIllustrationPointProperties.Durations));
+ PropertyDescriptor durationsProperty = dynamicProperties[5];
+ Assert.NotNull(durationsProperty.Attributes[typeof(KeyValueElementAttribute)]);
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(durationsProperty,
+ miscCategory,
+ "Tijdsduren",
+ "Tijdsduren waarop de stochasten betrekking hebben.",
+ true);
+
+ TestHelper.AssertTypeConverter(nameof(WindDirectionClosingSituationIllustrationPointProperties.IllustrationPointResults));
+ PropertyDescriptor illustrationPointResultsProperty = dynamicProperties[6];
+ Assert.NotNull(illustrationPointResultsProperty.Attributes[typeof(KeyValueElementAttribute)]);
+ PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(illustrationPointResultsProperty,
+ miscCategory,
+ "Waarden in het illustratiepunt",
+ "Realisaties van de stochasten in het illustratiepunt.",
+ true);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj
===================================================================
diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -rc5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision c5ac6656bddb53b9a1ec2edd5ca2f19c5b7d8e80)
@@ -87,6 +87,7 @@
+