Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -rdd72cf407b7d0e9284d101bb2e2854e569b1a29a -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision dd72cf407b7d0e9284d101bb2e2854e569b1a29a)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -1,28 +1,7 @@
-// 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.
-
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
+// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -181,6 +160,42 @@
}
///
+ /// Looks up a localized string similar to De coördinaten van de locatie van het kunstwerk in het Rijksdriehoeksstelsel..
+ ///
+ public static string HeightStructure_Location_Description {
+ get {
+ return ResourceManager.GetString("HeightStructure_Location_Description", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Locatie (RD) [m].
+ ///
+ public static string HeightStructure_Location_DisplayName {
+ get {
+ return ResourceManager.GetString("HeightStructure_Location_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to De naam van het kunstwerk..
+ ///
+ public static string HeightStructure_Name_Description {
+ get {
+ return ResourceManager.GetString("HeightStructure_Name_Description", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Naam.
+ ///
+ public static string HeightStructure_Name_DisplayName {
+ get {
+ return ResourceManager.GetString("HeightStructure_Name_DisplayName", resourceCulture);
+ }
+ }
+
+ ///
/// Looks up a localized string similar to Het hoogte kunstwerk toetsspoor.
///
public static string HeightStructuresContextBase_DataDescription_HeightStructuresFailureMechanism {
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.resx
===================================================================
diff -u -rdd72cf407b7d0e9284d101bb2e2854e569b1a29a -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.resx (.../Resources.resx) (revision dd72cf407b7d0e9284d101bb2e2854e569b1a29a)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Properties/Resources.resx (.../Resources.resx) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -213,4 +213,16 @@
De waarde voor de faalkans moet ingevuld zijn.
+
+ De coördinaten van de locatie van het kunstwerk in het Rijksdriehoeksstelsel.
+
+
+ Locatie (RD) [m]
+
+
+ De naam van het kunstwerk.
+
+
+ Naam
+
\ No newline at end of file
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructureProperties.cs
===================================================================
diff -u
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructureProperties.cs (revision 0)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructureProperties.cs (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -0,0 +1,184 @@
+// 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 System.ComponentModel;
+using Core.Common.Base.Data;
+using Core.Common.Base.Geometry;
+using Core.Common.Gui.Attributes;
+using Core.Common.Gui.PropertyBag;
+using Core.Common.Utils.Attributes;
+using Ringtoets.Common.Forms.PropertyClasses;
+using Ringtoets.HeightStructures.Data;
+using Ringtoets.HeightStructures.Forms.Properties;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.HeightStructures.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of for properties panel.
+ ///
+ public class HeightStructureProperties : ObjectProperties
+ {
+ [PropertyOrder(1)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_General")]
+ [ResourcesDisplayName(typeof(Resources), "HeightStructure_Name_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "HeightStructure_Name_Description")]
+ public string Name
+ {
+ get
+ {
+ return data.Name;
+ }
+ }
+
+ [PropertyOrder(2)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_General")]
+ [ResourcesDisplayName(typeof(Resources), "HeightStructure_Location_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "HeightStructure_Location_Description")]
+ public Point2D Location
+ {
+ get
+ {
+ return data.Location;
+ }
+ }
+
+ [PropertyOrder(3)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "OrientationOfTheNormalOfTheStructure_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "OrientationOfTheNormalOfTheStructure_Description")]
+ public RoundedDouble OrientationOfTheNormalOfTheStructure
+ {
+ get
+ {
+ return data.OrientationOfTheNormalOfTheStructure;
+ }
+ }
+
+ [PropertyOrder(4)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "LevelOfCrestOfStructure_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "LevelOfCrestOfStructure_Description")]
+ public NormalDistributionProperties LevelOfCrestOfStructure
+ {
+ get
+ {
+ return new NormalDistributionProperties
+ {
+ Data = data.LevelOfCrestOfStructure
+ };
+ }
+ }
+
+ [PropertyOrder(5)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "AllowableIncreaseOfLevelForStorage_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "AllowableIncreaseOfLevelForStorage_Description")]
+ public LogNormalDistributionProperties AllowableIncreaseOfLevelForStorage
+ {
+ get
+ {
+ return new LogNormalDistributionProperties
+ {
+ Data = data.AllowableIncreaseOfLevelForStorage
+ };
+ }
+ }
+
+ [PropertyOrder(6)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "StorageStructureArea_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "StorageStructureArea_Description")]
+ public LogNormalDistributionProperties StorageStructureArea
+ {
+ get
+ {
+ return new LogNormalDistributionProperties
+ {
+ Data = data.StorageStructureArea
+ };
+ }
+ }
+
+ [PropertyOrder(7)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "FlowWidthAtBottomProtection_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "FlowWidthAtBottomProtection_Description")]
+ public LogNormalDistributionProperties FlowWidthAtBottomProtection
+ {
+ get
+ {
+ return new LogNormalDistributionProperties
+ {
+ Data = data.FlowWidthAtBottomProtection
+ };
+ }
+ }
+
+ [PropertyOrder(8)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "WidthOfFlowApertures_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "WidthOfFlowApertures_Description")]
+ public NormalDistributionProperties WidthOfFlowApertures
+ {
+ get
+ {
+ return new NormalDistributionProperties
+ {
+ Data = data.WidthOfFlowApertures
+ };
+ }
+ }
+
+ [PropertyOrder(9)]
+ [TypeConverter(typeof(ExpandableObjectConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "CriticalOvertoppingDischarge_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "CriticalOvertoppingDischarge_Description")]
+ public LogNormalDistributionProperties CriticalOvertoppingDischarge
+ {
+ get
+ {
+ return new LogNormalDistributionProperties
+ {
+ Data = data.CriticalOvertoppingDischarge
+ };
+ }
+ }
+
+ [PropertyOrder(10)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_Schematization")]
+ [ResourcesDisplayName(typeof(Resources), "FailureProbabilityOfStructureGivenErosion_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "FailureProbabilityOfStructureGivenErosion_Description")]
+ public double FailureProbabilityOfStructureGivenErosion
+ {
+ get
+ {
+ return data.FailureProbabilityOfStructureGivenErosion;
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Ringtoets.HeightStructures.Forms.csproj
===================================================================
diff -u -rdd72cf407b7d0e9284d101bb2e2854e569b1a29a -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Ringtoets.HeightStructures.Forms.csproj (.../Ringtoets.HeightStructures.Forms.csproj) (revision dd72cf407b7d0e9284d101bb2e2854e569b1a29a)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Ringtoets.HeightStructures.Forms.csproj (.../Ringtoets.HeightStructures.Forms.csproj) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -53,6 +53,7 @@
True
Resources.resx
+
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs
===================================================================
diff -u -rdd72cf407b7d0e9284d101bb2e2854e569b1a29a -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision dd72cf407b7d0e9284d101bb2e2854e569b1a29a)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -60,6 +60,7 @@
{
yield return new PropertyInfo();
yield return new PropertyInfo();
+ yield return new PropertyInfo();
}
public override IEnumerable GetImportInfos()
Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructurePropertiesTest.cs
===================================================================
diff -u
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructurePropertiesTest.cs (revision 0)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructurePropertiesTest.cs (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -0,0 +1,186 @@
+// 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 System;
+using System.ComponentModel;
+using Core.Common.Base.Geometry;
+using Core.Common.Gui.PropertyBag;
+using NUnit.Framework;
+using Ringtoets.HeightStructures.Data;
+using Ringtoets.HeightStructures.Forms.PropertyClasses;
+
+namespace Ringtoets.HeightStructures.Forms.Test.PropertyClasses
+{
+ [TestFixture]
+ public class HeightStructurePropertiesTest
+ {
+ private const int namePropertyIndex = 0;
+ private const int locationPropertyIndex = 1;
+ private const int orientationOfTheNormalOfTheStructure = 2;
+ private const int levelOfCrestOfStructure = 3;
+ private const int allowableIncreaseOfLevelForStorage = 4;
+ private const int storageStructureArea = 5;
+ private const int flowWidthAtBottomProtection = 6;
+ private const int widthOfFlowApertures = 7;
+ private const int criticalOvertoppingDischarge = 8;
+ private const int failureProbabilityOfStructureGivenErosion = 9;
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Call
+ var properties = new HeightStructureProperties();
+
+ // Assert
+ Assert.IsInstanceOf>(properties);
+ Assert.IsNull(properties.Data);
+ }
+
+ [Test]
+ public void Data_SetNewHeightStructureInstance_ReturnCorrectPropertyValues()
+ {
+ // Setup
+ var structure = new HeightStructure("A", "B", new Point2D(1, 2),
+ 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9,
+ 10.10, 11.11, 12.12, 13.13, 14.14);
+ var properties = new HeightStructureProperties();
+
+ // Call
+ properties.Data = structure;
+
+ // Assert
+ Assert.AreEqual(structure.Name, properties.Name);
+ Assert.AreEqual(structure.Location, properties.Location);
+ Assert.AreEqual(structure.OrientationOfTheNormalOfTheStructure, properties.OrientationOfTheNormalOfTheStructure);
+
+ Assert.AreEqual("Normaal", properties.LevelOfCrestOfStructure.DistributionType);
+ Assert.AreEqual(structure.LevelOfCrestOfStructure, properties.LevelOfCrestOfStructure.Data);
+ Assert.IsTrue(properties.LevelOfCrestOfStructure.DynamicReadOnlyValidationMethod("Mean"));
+ Assert.IsTrue(properties.LevelOfCrestOfStructure.DynamicReadOnlyValidationMethod("StandardDeviation"));
+
+ Assert.AreEqual("Lognormaal", properties.StorageStructureArea.DistributionType);
+ Assert.AreEqual(structure.StorageStructureArea, properties.StorageStructureArea.Data);
+ Assert.IsTrue(properties.StorageStructureArea.DynamicReadOnlyValidationMethod("Mean"));
+ Assert.IsTrue(properties.StorageStructureArea.DynamicReadOnlyValidationMethod("StandardDeviation"));
+
+ Assert.AreEqual("Lognormaal", properties.FlowWidthAtBottomProtection.DistributionType);
+ Assert.AreEqual(structure.FlowWidthAtBottomProtection, properties.FlowWidthAtBottomProtection.Data);
+ Assert.IsTrue(properties.FlowWidthAtBottomProtection.DynamicReadOnlyValidationMethod("Mean"));
+ Assert.IsTrue(properties.FlowWidthAtBottomProtection.DynamicReadOnlyValidationMethod("StandardDeviation"));
+
+ Assert.AreEqual("Normaal", properties.WidthOfFlowApertures.DistributionType);
+ Assert.AreEqual(structure.WidthOfFlowApertures, properties.WidthOfFlowApertures.Data);
+ Assert.IsTrue(properties.WidthOfFlowApertures.DynamicReadOnlyValidationMethod("Mean"));
+ Assert.IsTrue(properties.WidthOfFlowApertures.DynamicReadOnlyValidationMethod("StandardDeviation"));
+
+ Assert.AreEqual("Lognormaal", properties.CriticalOvertoppingDischarge.DistributionType);
+ Assert.AreEqual(structure.CriticalOvertoppingDischarge, properties.CriticalOvertoppingDischarge.Data);
+ Assert.IsTrue(properties.CriticalOvertoppingDischarge.DynamicReadOnlyValidationMethod("Mean"));
+ Assert.IsTrue(properties.CriticalOvertoppingDischarge.DynamicReadOnlyValidationMethod("StandardDeviation"));
+
+ Assert.AreEqual(structure.FailureProbabilityOfStructureGivenErosion, properties.FailureProbabilityOfStructureGivenErosion);
+ }
+
+ [Test]
+ public void PropertyAttributes_ReturnExpectedValues()
+ {
+ // Setup
+ var structure = new HeightStructure("A", "B", new Point2D(1, 2),
+ 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9,
+ 10.10, 11.11, 12.12, 13.13, 14.14);
+
+ // Call
+ var properties = new HeightStructureProperties
+ {
+ Data = structure
+ };
+
+ // Assert
+ var dynamicPropertyBag = new DynamicPropertyBag(properties);
+ PropertyDescriptorCollection dynamicProperties = dynamicPropertyBag.GetProperties(new Attribute[]{BrowsableAttribute.Yes});
+ Assert.AreEqual(10, dynamicProperties.Count);
+
+ const string schematizationCategory = "Schematisatie";
+ const string generalCategory = "Algemeen";
+
+ PropertyDescriptor nameProperty = dynamicProperties[namePropertyIndex];
+ Assert.IsTrue(nameProperty.IsReadOnly);
+ Assert.AreEqual(generalCategory, nameProperty.Category);
+ Assert.AreEqual("Naam", nameProperty.DisplayName);
+ Assert.AreEqual("De naam van het kunstwerk.", nameProperty.Description);
+
+ PropertyDescriptor locationProperty = dynamicProperties[locationPropertyIndex];
+ Assert.IsTrue(locationProperty.IsReadOnly);
+ Assert.AreEqual(generalCategory, locationProperty.Category);
+ Assert.AreEqual("Locatie (RD) [m]", locationProperty.DisplayName);
+ Assert.AreEqual("De coördinaten van de locatie van het kunstwerk in het Rijksdriehoeksstelsel.", locationProperty.Description);
+
+
+ PropertyDescriptor orientationOfTheNormalOfTheStructureProperty = dynamicProperties[orientationOfTheNormalOfTheStructure];
+ Assert.IsTrue(orientationOfTheNormalOfTheStructureProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, orientationOfTheNormalOfTheStructureProperty.Category);
+ Assert.AreEqual("Oriëntatie [°]", orientationOfTheNormalOfTheStructureProperty.DisplayName);
+ Assert.AreEqual("Oriëntatie van de normaal van het kunstwerk ten opzichte van het noorden.", orientationOfTheNormalOfTheStructureProperty.Description);
+
+ PropertyDescriptor levelOfCrestOfStructureProperty = dynamicProperties[levelOfCrestOfStructure];
+ Assert.IsInstanceOf(levelOfCrestOfStructureProperty.Converter);
+ Assert.AreEqual(schematizationCategory, levelOfCrestOfStructureProperty.Category);
+ Assert.AreEqual("Kerende hoogte [m]", levelOfCrestOfStructureProperty.DisplayName);
+ Assert.AreEqual("De kerende hoogte van het kunstwerk.", levelOfCrestOfStructureProperty.Description);
+
+ PropertyDescriptor allowableIncreaseOfLevelForStorageProperty = dynamicProperties[allowableIncreaseOfLevelForStorage];
+ Assert.IsInstanceOf(allowableIncreaseOfLevelForStorageProperty.Converter);
+ Assert.AreEqual(schematizationCategory, allowableIncreaseOfLevelForStorageProperty.Category);
+ Assert.AreEqual("Toegestane peilverhoging komberging [m]", allowableIncreaseOfLevelForStorageProperty.DisplayName);
+ Assert.AreEqual("De toegestane peilverhoging op het kombergend oppervlak.", allowableIncreaseOfLevelForStorageProperty.Description);
+
+ PropertyDescriptor storageStructureAreaProperty = dynamicProperties[storageStructureArea];
+ Assert.IsInstanceOf(storageStructureAreaProperty.Converter);
+ Assert.AreEqual(schematizationCategory, storageStructureAreaProperty.Category);
+ Assert.AreEqual("Kombergend oppervlak [m²]", storageStructureAreaProperty.DisplayName);
+ Assert.AreEqual("Het kombergend oppervlak.", storageStructureAreaProperty.Description);
+
+ PropertyDescriptor flowWidthAtBottomProtectionProperty = dynamicProperties[flowWidthAtBottomProtection];
+ Assert.IsInstanceOf(flowWidthAtBottomProtectionProperty.Converter);
+ Assert.AreEqual(schematizationCategory, flowWidthAtBottomProtectionProperty.Category);
+ Assert.AreEqual("Stroomvoerende breedte bij bodembescherming [m]", flowWidthAtBottomProtectionProperty.DisplayName);
+ Assert.AreEqual("De stroomvoerende breedte bij bodembescherming.", flowWidthAtBottomProtectionProperty.Description);
+
+ PropertyDescriptor widthOfFlowAperturesProperty = dynamicProperties[widthOfFlowApertures];
+ Assert.IsInstanceOf(widthOfFlowAperturesProperty.Converter);
+ Assert.AreEqual(schematizationCategory, widthOfFlowAperturesProperty.Category);
+ Assert.AreEqual("Breedte van de kruin van het kunstwerk [m]", widthOfFlowAperturesProperty.DisplayName);
+ Assert.AreEqual("De breedte van de kruin van het kunstwerk.", widthOfFlowAperturesProperty.Description);
+
+ PropertyDescriptor criticalOvertoppingDischargeProperty = dynamicProperties[criticalOvertoppingDischarge];
+ Assert.IsInstanceOf(criticalOvertoppingDischargeProperty.Converter);
+ Assert.AreEqual(schematizationCategory, criticalOvertoppingDischargeProperty.Category);
+ Assert.AreEqual("Kritiek overslagdebiet [m³/s/m]", criticalOvertoppingDischargeProperty.DisplayName);
+ Assert.AreEqual("Het kritieke overslagdebiet per strekkende meter.", criticalOvertoppingDischargeProperty.Description);
+
+ PropertyDescriptor failureProbabilityOfStructureGivenErosionProperty = dynamicProperties[failureProbabilityOfStructureGivenErosion];
+ Assert.IsTrue(failureProbabilityOfStructureGivenErosionProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, failureProbabilityOfStructureGivenErosionProperty.Category);
+ Assert.AreEqual("Faalkans kunstwerk gegeven erosie bodem [-]", failureProbabilityOfStructureGivenErosionProperty.DisplayName);
+ Assert.AreEqual("De faalkans van het kunstwerk gegeven de erosie in de bodem.", failureProbabilityOfStructureGivenErosionProperty.Description);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj
===================================================================
diff -u -rdd72cf407b7d0e9284d101bb2e2854e569b1a29a -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj (.../Ringtoets.HeightStructures.Forms.Test.csproj) (revision dd72cf407b7d0e9284d101bb2e2854e569b1a29a)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj (.../Ringtoets.HeightStructures.Forms.Test.csproj) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -67,6 +67,7 @@
+
Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresPluginTest.cs
===================================================================
diff -u -r7a0eb8b2709b5c13d4711701213826b9cbd5aafe -rd499bba7f0abdb8481bfe1ffc619414116a13121
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresPluginTest.cs (.../HeightStructuresPluginTest.cs) (revision 7a0eb8b2709b5c13d4711701213826b9cbd5aafe)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresPluginTest.cs (.../HeightStructuresPluginTest.cs) (revision d499bba7f0abdb8481bfe1ffc619414116a13121)
@@ -60,7 +60,7 @@
PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();
// assert
- Assert.AreEqual(2, propertyInfos.Length);
+ Assert.AreEqual(3, propertyInfos.Length);
PropertyInfo failureMechanismContextProperties = PluginTestHelper.AssertPropertyInfoDefined(
propertyInfos,
typeof(HeightStructuresFailureMechanismContext),
@@ -76,6 +76,14 @@
Assert.IsNull(heightStructuresInputContextProperties.AdditionalDataCheck);
Assert.IsNull(heightStructuresInputContextProperties.GetObjectPropertiesData);
Assert.IsNull(heightStructuresInputContextProperties.AfterCreate);
+
+ PropertyInfo heightStructureProperties = PluginTestHelper.AssertPropertyInfoDefined(
+ propertyInfos,
+ typeof(HeightStructure),
+ typeof(HeightStructureProperties));
+ Assert.IsNull(heightStructureProperties.AdditionalDataCheck);
+ Assert.IsNull(heightStructureProperties.GetObjectPropertiesData);
+ Assert.IsNull(heightStructureProperties.AfterCreate);
}
}