Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -r047f4923187a3d85e80edeb58439661eb926976f -r3bef7fd465344746e2af6b4da8bf94d909fa9208
--- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 047f4923187a3d85e80edeb58439661eb926976f)
+++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 3bef7fd465344746e2af6b4da8bf94d909fa9208)
@@ -149,7 +149,7 @@
}
///
- /// Looks up a localized string similar to Lineair belastingschematisering constructieve sterkte [kN/m²].
+ /// Looks up a localized string similar to Lineaire belastingschematisering constructieve sterkte [kN/m²].
///
internal static string Structure_ConstructiveStrengthLinearLoadModel_DisplayName {
get {
@@ -167,7 +167,7 @@
}
///
- /// Looks up a localized string similar to Kwadratisch belastingschematisering constructieve sterkte [kN/m].
+ /// Looks up a localized string similar to Kwadratische belastingschematisering constructieve sterkte [kN/m].
///
internal static string Structure_ConstructiveStrengthQuadraticLoadModel_DisplayName {
get {
@@ -284,7 +284,7 @@
}
///
- /// Looks up a localized string similar to Geeft aan of het lineair belastingmodel of het kwadratisch belastingmodel moet worden gebruikt..
+ /// Looks up a localized string similar to Geeft aan of het lineaire belastingmodel of het kwadratische belastingmodel moet worden gebruikt..
///
internal static string Structure_LoadSchematizationType_Description {
get {
@@ -383,7 +383,7 @@
}
///
- /// Looks up a localized string similar to Kwadratisch belastingschematisering stabiliteit [kN/m].
+ /// Looks up a localized string similar to Kwadratische belastingschematisering stabiliteit [kN/m].
///
internal static string Structure_StabilityQuadraticLoadModel_DisplayName {
get {
Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.resx
===================================================================
diff -u -r047f4923187a3d85e80edeb58439661eb926976f -r3bef7fd465344746e2af6b4da8bf94d909fa9208
--- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.resx (.../Resources.resx) (revision 047f4923187a3d85e80edeb58439661eb926976f)
+++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Properties/Resources.resx (.../Resources.resx) (revision 3bef7fd465344746e2af6b4da8bf94d909fa9208)
@@ -139,13 +139,13 @@
Kritieke sterkte constructie volgens de lineaire belastingschematisatie.
- Lineair belastingschematisering constructieve sterkte [kN/m²]
+ Lineaire belastingschematisering constructieve sterkte [kN/m²]
Kritieke sterkte constructie volgens de kwadratische belastingschematisatie.
- Kwadratisch belastingschematisering constructieve sterkte [kN/m]
+ Kwadratische belastingschematisering constructieve sterkte [kN/m]
Hoogte waarop de constructieve sterkte wordt beoordeeld.
@@ -184,7 +184,7 @@
Aantal nivelleringen per jaar [1/jaar]
- Geeft aan of het lineair belastingmodel of het kwadratisch belastingmodel moet worden gebruikt.
+ Geeft aan of het lineaire belastingmodel of het kwadratische belastingmodel moet worden gebruikt.
Belastingschematisering
@@ -217,7 +217,7 @@
Kritieke stabiliteit constructie volgens de kwadratische belastingschematisatie.
- Kwadratisch belastingschematisering stabiliteit [kN/m]
+ Kwadratische belastingschematisering stabiliteit [kN/m]
Verticale afstand tussen de onderkant van de wand en de teen van de dijk/berm.
Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructurePropertiesTest.cs
===================================================================
diff -u -ra16989b635b3770eb1bbf10c47e41eef796ce2fa -r3bef7fd465344746e2af6b4da8bf94d909fa9208
--- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructurePropertiesTest.cs (.../StabilityPointStructurePropertiesTest.cs) (revision a16989b635b3770eb1bbf10c47e41eef796ce2fa)
+++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructurePropertiesTest.cs (.../StabilityPointStructurePropertiesTest.cs) (revision 3bef7fd465344746e2af6b4da8bf94d909fa9208)
@@ -320,13 +320,13 @@
PropertyDescriptor constructiveStrengthLinearLoadModelProperty = dynamicProperties[constructiveStrengthLinearLoadModelPropertyIndex];
Assert.IsInstanceOf(constructiveStrengthLinearLoadModelProperty.Converter);
Assert.AreEqual(schematizationCategory, constructiveStrengthLinearLoadModelProperty.Category);
- Assert.AreEqual("Lineair belastingschematisering constructieve sterkte [kN/m²]", constructiveStrengthLinearLoadModelProperty.DisplayName);
+ Assert.AreEqual("Lineaire belastingschematisering constructieve sterkte [kN/m²]", constructiveStrengthLinearLoadModelProperty.DisplayName);
Assert.AreEqual("Kritieke sterkte constructie volgens de lineaire belastingschematisatie.", constructiveStrengthLinearLoadModelProperty.Description);
PropertyDescriptor constructiveStrengthQuadraticLoadModelProperty = dynamicProperties[constructiveStrengthQuadraticLoadModelPropertyIndex];
Assert.IsInstanceOf(constructiveStrengthQuadraticLoadModelProperty.Converter);
Assert.AreEqual(schematizationCategory, constructiveStrengthQuadraticLoadModelProperty.Category);
- Assert.AreEqual("Kwadratisch belastingschematisering constructieve sterkte [kN/m]", constructiveStrengthQuadraticLoadModelProperty.DisplayName);
+ Assert.AreEqual("Kwadratische belastingschematisering constructieve sterkte [kN/m]", constructiveStrengthQuadraticLoadModelProperty.DisplayName);
Assert.AreEqual("Kritieke sterkte constructie volgens de kwadratische belastingschematisatie.", constructiveStrengthQuadraticLoadModelProperty.Description);
PropertyDescriptor bankWidthProperty = dynamicProperties[bankWidthPropertyIndex];
@@ -387,7 +387,7 @@
PropertyDescriptor stabilityQuadraticLoadModelProperty = dynamicProperties[stabilityQuadraticLoadModelPropertyIndex];
Assert.IsInstanceOf(stabilityQuadraticLoadModelProperty.Converter);
Assert.AreEqual(schematizationCategory, stabilityQuadraticLoadModelProperty.Category);
- Assert.AreEqual("Kwadratisch belastingschematisering stabiliteit [kN/m]", stabilityQuadraticLoadModelProperty.DisplayName);
+ Assert.AreEqual("Kwadratische belastingschematisering stabiliteit [kN/m]", stabilityQuadraticLoadModelProperty.DisplayName);
Assert.AreEqual("Kritieke stabiliteit constructie volgens de kwadratische belastingschematisatie.", stabilityQuadraticLoadModelProperty.Description);
}
}
Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresInputContextPropertiesTest.cs
===================================================================
diff -u -r60b9a0401e15ddda63caa0f85cd911bbee4b0183 -r3bef7fd465344746e2af6b4da8bf94d909fa9208
--- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresInputContextPropertiesTest.cs (.../StabilityPointStructuresInputContextPropertiesTest.cs) (revision 60b9a0401e15ddda63caa0f85cd911bbee4b0183)
+++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresInputContextPropertiesTest.cs (.../StabilityPointStructuresInputContextPropertiesTest.cs) (revision 3bef7fd465344746e2af6b4da8bf94d909fa9208)
@@ -21,12 +21,14 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Globalization;
using System.Linq;
using Application.Ringtoets.Storage.TestUtil;
using Core.Common.Base;
using Core.Common.Base.Data;
using Core.Common.Base.Geometry;
+using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
using Rhino.Mocks;
@@ -49,6 +51,46 @@
{
private MockRepository mockRepository;
+ private const int hydraulicBoundaryLocationPropertyIndex = 0;
+ private const int volumicWeightWaterPropertyIndex = 1;
+ private const int stormDurationPropertyIndex = 2;
+ private const int insideWaterLevelPropertyIndex = 3;
+ private const int insideWaterLevelFailureConstructionPropertyIndex = 4;
+ private const int flowVelocityStructureClosablePropertyIndex = 5;
+ private const int modelFactorSuperCriticalFlowPropertyIndex = 6;
+ private const int drainCoefficientPropertyIndex = 7;
+ private const int factorStormDurationOpenStructurePropertyIndex = 8;
+ private const int structurePropertyIndex = 9;
+ private const int structureLocationPropertyIndex = 10;
+ private const int structureNormalOrientationPropertyIndex = 11;
+ private const int inflowModelTypePropertyIndex = 12;
+ private const int loadSchematizationTypePropertyIndex = 13;
+ private const int widthFlowAperturesPropertyIndex = 14;
+ private const int areaFlowAperturesPropertyIndex = 15;
+ private const int flowWidthAtBottomProtectionPropertyIndex = 16;
+ private const int storageStructureAreaPropertyIndex = 17;
+ private const int allowedLevelIncreaseStoragePropertyIndex = 18;
+ private const int levelCrestStructurePropertyIndex = 19;
+ private const int thresholdHeightOpenWeirPropertyIndex = 20;
+ private const int criticalOvertoppingDischargePropertyIndex = 21;
+ private const int constructiveStrengthLinearLoadModelPropertyIndex = 22;
+ private const int constructiveStrengthQuadraticLoadModelPropertyIndex = 23;
+ private const int bankWidthPropertyIndex = 24;
+ private const int evaluationLevelPropertyIndex = 25;
+ private const int verticalDistancePropertyIndex = 26;
+ private const int failureProbabilityRepairClosurePropertyIndex = 27;
+ private const int failureCollisionEnergyPropertyIndex = 28;
+ private const int shipMassPropertyIndex = 29;
+ private const int shipVelocityPropertyIndex = 30;
+ private const int levellingCountPropertyIndex = 31;
+ private const int probabilityCollisionSecondaryStructurePropertyIndex = 32;
+ private const int stabilityLinearLoadModelPropertyIndex = 33;
+ private const int stabilityQuadraticLoadModelPropertyIndex = 34;
+ private const int failureProbabilityStructureWithErosionPropertyIndex = 35;
+ private const int foreshoreProfilePropertyIndex = 36;
+ private const int useBreakWaterPropertyIndex = 37;
+ private const int useForeshorePropertyIndex = 38;
+
[SetUp]
public void SetUp()
{
@@ -450,6 +492,202 @@
}
[Test]
+ public void PropertyAttributes_ReturnExpectedValues()
+ {
+ // Setup
+ var assessmentSectionStub = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ var failureMechanism = new StabilityPointStructuresFailureMechanism();
+ var calculation = new StructuresCalculation();
+ var inputContext = new StabilityPointStructuresInputContext(calculation.InputParameters,
+ calculation,
+ failureMechanism,
+ assessmentSectionStub);
+
+ // Call
+ var properties = new StabilityPointStructuresInputContextProperties
+ {
+ Data = inputContext
+ };
+
+ // Assert
+ const string schematizationCategory = "Schematisatie";
+ const string hydraulicDataCategory = "Hydraulische gegevens";
+ const string modelSettingsCategory = "Modelinstellingen";
+
+ var dynamicPropertyBag = new DynamicPropertyBag(properties);
+ PropertyDescriptorCollection dynamicProperties = dynamicPropertyBag.GetProperties(new Attribute[]
+ {
+ new BrowsableAttribute(true)
+ });
+ Assert.AreEqual(39, dynamicProperties.Count);
+
+ PropertyDescriptor volumicWeightWaterProperty = dynamicProperties[volumicWeightWaterPropertyIndex];
+ Assert.IsFalse(volumicWeightWaterProperty.IsReadOnly);
+ Assert.AreEqual(hydraulicDataCategory, volumicWeightWaterProperty.Category);
+ Assert.AreEqual("Volumiek gewicht van water [kN/m³]", volumicWeightWaterProperty.DisplayName);
+ Assert.AreEqual("Volumiek gewicht van water.", volumicWeightWaterProperty.Description);
+
+ PropertyDescriptor insideWaterLevelProperty = dynamicProperties[insideWaterLevelPropertyIndex];
+ Assert.IsInstanceOf(insideWaterLevelProperty.Converter);
+ Assert.AreEqual(hydraulicDataCategory, insideWaterLevelProperty.Category);
+ Assert.AreEqual("Binnenwaterstand [m+NAP]", insideWaterLevelProperty.DisplayName);
+ Assert.AreEqual("Binnenwaterstand.", insideWaterLevelProperty.Description);
+
+ PropertyDescriptor insideWaterLevelFailureConstructionProperty = dynamicProperties[insideWaterLevelFailureConstructionPropertyIndex];
+ Assert.IsInstanceOf(insideWaterLevelFailureConstructionProperty.Converter);
+ Assert.AreEqual(hydraulicDataCategory, insideWaterLevelFailureConstructionProperty.Category);
+ Assert.AreEqual("Binnenwaterstand bij constructief falen [m+NAP]", insideWaterLevelFailureConstructionProperty.DisplayName);
+ Assert.AreEqual("Binnenwaterstand bij constructief falen.", insideWaterLevelFailureConstructionProperty.Description);
+
+ PropertyDescriptor flowVelocityStructureClosableProperty = dynamicProperties[flowVelocityStructureClosablePropertyIndex];
+ Assert.IsInstanceOf(flowVelocityStructureClosableProperty.Converter);
+ Assert.AreEqual(modelSettingsCategory, flowVelocityStructureClosableProperty.Category);
+ Assert.AreEqual("Kritieke stroomsnelheid sluiting eerste keermiddel [m/s]", flowVelocityStructureClosableProperty.DisplayName);
+ Assert.AreEqual("Stroomsnelheid waarbij na aanvaring het eerste keermiddel nog net kan worden gesloten.", flowVelocityStructureClosableProperty.Description);
+
+ PropertyDescriptor drainCoefficientProperty = dynamicProperties[drainCoefficientPropertyIndex];
+ Assert.IsInstanceOf(drainCoefficientProperty.Converter);
+ Assert.AreEqual(modelSettingsCategory, drainCoefficientProperty.Category);
+ Assert.AreEqual("Afvoercoëfficient [-]", drainCoefficientProperty.DisplayName);
+ Assert.AreEqual("Afvoercoëfficient.", drainCoefficientProperty.Description);
+
+ PropertyDescriptor factorStormDurationOpenStructureProperty = dynamicProperties[factorStormDurationOpenStructurePropertyIndex];
+ Assert.IsFalse(factorStormDurationOpenStructureProperty.IsReadOnly);
+ Assert.AreEqual(modelSettingsCategory, factorStormDurationOpenStructureProperty.Category);
+ Assert.AreEqual("Factor voor stormduur hoogwater [-]", factorStormDurationOpenStructureProperty.DisplayName);
+ Assert.AreEqual("Factor voor stormduur hoogwater gegeven geopend kunstwerk.", factorStormDurationOpenStructureProperty.Description);
+
+ PropertyDescriptor inflowModelTypeProperty = dynamicProperties[inflowModelTypePropertyIndex];
+ Assert.IsInstanceOf(inflowModelTypeProperty.Converter);
+ Assert.AreEqual(schematizationCategory, inflowModelTypeProperty.Category);
+ Assert.AreEqual("Instroommodel", inflowModelTypeProperty.DisplayName);
+ Assert.AreEqual("Instroommodel van het kunstwerk.", inflowModelTypeProperty.Description);
+
+ PropertyDescriptor loadSchematizationTypeProperty = dynamicProperties[loadSchematizationTypePropertyIndex];
+ Assert.IsInstanceOf(loadSchematizationTypeProperty.Converter);
+ Assert.AreEqual(schematizationCategory, loadSchematizationTypeProperty.Category);
+ Assert.AreEqual("Belastingschematisering", loadSchematizationTypeProperty.DisplayName);
+ Assert.AreEqual("Geeft aan of het lineaire belastingmodel of het kwadratische belastingmodel moet worden gebruikt.", loadSchematizationTypeProperty.Description);
+
+ PropertyDescriptor areaFlowAperturesProperty = dynamicProperties[areaFlowAperturesPropertyIndex];
+ Assert.IsInstanceOf(areaFlowAperturesProperty.Converter);
+ Assert.AreEqual(schematizationCategory, areaFlowAperturesProperty.Category);
+ Assert.AreEqual("Doorstroomoppervlak [m²]", areaFlowAperturesProperty.DisplayName);
+ Assert.AreEqual("Doorstroomoppervlak van doorstroomopeningen.", areaFlowAperturesProperty.Description);
+
+ PropertyDescriptor levelCrestStructureProperty = dynamicProperties[levelCrestStructurePropertyIndex];
+ Assert.IsInstanceOf(levelCrestStructureProperty.Converter);
+ Assert.AreEqual(schematizationCategory, levelCrestStructureProperty.Category);
+ Assert.AreEqual("Kerende hoogte [m+NAP]", levelCrestStructureProperty.DisplayName);
+ Assert.AreEqual("Kerende hoogte van het kunstwerk.", levelCrestStructureProperty.Description);
+
+ PropertyDescriptor thresholdHeightOpenWeirProperty = dynamicProperties[thresholdHeightOpenWeirPropertyIndex];
+ Assert.IsInstanceOf(thresholdHeightOpenWeirProperty.Converter);
+ Assert.AreEqual(schematizationCategory, thresholdHeightOpenWeirProperty.Category);
+ Assert.AreEqual("Drempelhoogte [m+NAP]", thresholdHeightOpenWeirProperty.DisplayName);
+ Assert.AreEqual("Drempelhoogte niet gesloten kering of hoogte van de onderkant van de wand/drempel.", thresholdHeightOpenWeirProperty.Description);
+
+ PropertyDescriptor constructiveStrengthLinearLoadModelProperty = dynamicProperties[constructiveStrengthLinearLoadModelPropertyIndex];
+ Assert.IsInstanceOf(constructiveStrengthLinearLoadModelProperty.Converter);
+ Assert.AreEqual(schematizationCategory, constructiveStrengthLinearLoadModelProperty.Category);
+ Assert.AreEqual("Lineaire belastingschematisering constructieve sterkte [kN/m²]", constructiveStrengthLinearLoadModelProperty.DisplayName);
+ Assert.AreEqual("Kritieke sterkte constructie volgens de lineaire belastingschematisatie.", constructiveStrengthLinearLoadModelProperty.Description);
+
+ PropertyDescriptor constructiveStrengthQuadraticLoadModelProperty = dynamicProperties[constructiveStrengthQuadraticLoadModelPropertyIndex];
+ Assert.IsInstanceOf(constructiveStrengthQuadraticLoadModelProperty.Converter);
+ Assert.AreEqual(schematizationCategory, constructiveStrengthQuadraticLoadModelProperty.Category);
+ Assert.AreEqual("Kwadratische belastingschematisering constructieve sterkte [kN/m]", constructiveStrengthQuadraticLoadModelProperty.DisplayName);
+ Assert.AreEqual("Kritieke sterkte constructie volgens de kwadratische belastingschematisatie.", constructiveStrengthQuadraticLoadModelProperty.Description);
+
+ PropertyDescriptor bankWidthProperty = dynamicProperties[bankWidthPropertyIndex];
+ Assert.IsInstanceOf(bankWidthProperty.Converter);
+ Assert.AreEqual(schematizationCategory, bankWidthProperty.Category);
+ Assert.AreEqual("Bermbreedte [m]", bankWidthProperty.DisplayName);
+ Assert.AreEqual("Bermbreedte.", bankWidthProperty.Description);
+
+ PropertyDescriptor evaluationLevelProperty = dynamicProperties[evaluationLevelPropertyIndex];
+ Assert.IsFalse(evaluationLevelProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, evaluationLevelProperty.Category);
+ Assert.AreEqual("Analysehoogte [m+NAP]", evaluationLevelProperty.DisplayName);
+ Assert.AreEqual("Hoogte waarop de constructieve sterkte wordt beoordeeld.", evaluationLevelProperty.Description);
+
+ PropertyDescriptor verticalDistanceProperty = dynamicProperties[verticalDistancePropertyIndex];
+ Assert.IsFalse(verticalDistanceProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, verticalDistanceProperty.Category);
+ Assert.AreEqual("Afstand onderkant wand en teen van de dijk/berm [m]", verticalDistanceProperty.DisplayName);
+ Assert.AreEqual("Verticale afstand tussen de onderkant van de wand en de teen van de dijk/berm.", verticalDistanceProperty.Description);
+
+ PropertyDescriptor failureProbabilityRepairClosureProperty = dynamicProperties[failureProbabilityRepairClosurePropertyIndex];
+ Assert.IsFalse(failureProbabilityRepairClosureProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, failureProbabilityRepairClosureProperty.Category);
+ Assert.AreEqual("Faalkans herstel van gefaalde situatie [1/jaar]", failureProbabilityRepairClosureProperty.DisplayName);
+ Assert.AreEqual("Faalkans herstel van gefaalde situatie.", failureProbabilityRepairClosureProperty.Description);
+
+ PropertyDescriptor failureCollisionEnergyProperty = dynamicProperties[failureCollisionEnergyPropertyIndex];
+ Assert.IsInstanceOf(failureCollisionEnergyProperty.Converter);
+ Assert.AreEqual(schematizationCategory, failureCollisionEnergyProperty.Category);
+ Assert.AreEqual("Bezwijkwaarde aanvaarenergie [kN m]", failureCollisionEnergyProperty.DisplayName);
+ Assert.AreEqual("Bezwijkwaarde aanvaarenergie.", failureCollisionEnergyProperty.Description);
+
+ PropertyDescriptor shipMassProperty = dynamicProperties[shipMassPropertyIndex];
+ Assert.IsInstanceOf(shipMassProperty.Converter);
+ Assert.AreEqual(schematizationCategory, shipMassProperty.Category);
+ Assert.AreEqual("Massa van het schip [ton]", shipMassProperty.DisplayName);
+ Assert.AreEqual("Massa van het schip.", shipMassProperty.Description);
+
+ PropertyDescriptor shipVelocityProperty = dynamicProperties[shipVelocityPropertyIndex];
+ Assert.IsInstanceOf(shipVelocityProperty.Converter);
+ Assert.AreEqual(schematizationCategory, shipVelocityProperty.Category);
+ Assert.AreEqual("Aanvaarsnelheid [m/s]", shipVelocityProperty.DisplayName);
+ Assert.AreEqual("Aanvaarsnelheid.", shipVelocityProperty.Description);
+
+ PropertyDescriptor levellingCountProperty = dynamicProperties[levellingCountPropertyIndex];
+ Assert.IsFalse(levellingCountProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, levellingCountProperty.Category);
+ Assert.AreEqual("Aantal nivelleringen per jaar [1/jaar]", levellingCountProperty.DisplayName);
+ Assert.AreEqual("Aantal nivelleringen per jaar.", levellingCountProperty.Description);
+
+ PropertyDescriptor probabilityCollisionSecondaryStructureProperty = dynamicProperties[probabilityCollisionSecondaryStructurePropertyIndex];
+ Assert.IsFalse(probabilityCollisionSecondaryStructureProperty.IsReadOnly);
+ Assert.AreEqual(schematizationCategory, probabilityCollisionSecondaryStructureProperty.Category);
+ Assert.AreEqual("Kans op aanvaring tweede keermiddel per nivellering [1/jaar/niv]", probabilityCollisionSecondaryStructureProperty.DisplayName);
+ Assert.AreEqual("Kans op aanvaring tweede keermiddel per nivellering.", probabilityCollisionSecondaryStructureProperty.Description);
+
+ PropertyDescriptor stabilityLinearLoadModel = dynamicProperties[stabilityLinearLoadModelPropertyIndex];
+ Assert.IsInstanceOf(stabilityLinearLoadModel.Converter);
+ Assert.AreEqual(schematizationCategory, stabilityLinearLoadModel.Category);
+ Assert.AreEqual("Lineaire belastingschematisering stabiliteit [kN/m²]", stabilityLinearLoadModel.DisplayName);
+ Assert.AreEqual("Kritieke stabiliteit constructie volgens de lineaire belastingschematisatie.", stabilityLinearLoadModel.Description);
+
+ PropertyDescriptor stabilityQuadraticLoadModelProperty = dynamicProperties[stabilityQuadraticLoadModelPropertyIndex];
+ Assert.IsInstanceOf(stabilityQuadraticLoadModelProperty.Converter);
+ Assert.AreEqual(schematizationCategory, stabilityQuadraticLoadModelProperty.Category);
+ Assert.AreEqual("Kwadratische belastingschematisering stabiliteit [kN/m]", stabilityQuadraticLoadModelProperty.DisplayName);
+ Assert.AreEqual("Kritieke stabiliteit constructie volgens de kwadratische belastingschematisatie.", stabilityQuadraticLoadModelProperty.Description);
+
+ // Only check the order of the base properties
+ Assert.AreEqual("Kunstwerk", dynamicProperties[structurePropertyIndex].DisplayName);
+ Assert.AreEqual("Locatie (RD) [m]", dynamicProperties[structureLocationPropertyIndex].DisplayName);
+ Assert.AreEqual("Oriëntatie [°]", dynamicProperties[structureNormalOrientationPropertyIndex].DisplayName);
+ Assert.AreEqual("Stroomvoerende breedte bodembescherming [m]", dynamicProperties[flowWidthAtBottomProtectionPropertyIndex].DisplayName);
+ Assert.AreEqual("Breedte van doorstroomopening [m]", dynamicProperties[widthFlowAperturesPropertyIndex].DisplayName);
+ Assert.AreEqual("Kombergend oppervlak [m²]", dynamicProperties[storageStructureAreaPropertyIndex].DisplayName);
+ Assert.AreEqual("Toegestane peilverhoging komberging [m]", dynamicProperties[allowedLevelIncreaseStoragePropertyIndex].DisplayName);
+ Assert.AreEqual("Kritiek instromend debiet [m³/s/m]", dynamicProperties[criticalOvertoppingDischargePropertyIndex].DisplayName);
+ Assert.AreEqual("Faalkans gegeven erosie bodem [1/jaar]", dynamicProperties[failureProbabilityStructureWithErosionPropertyIndex].DisplayName);
+ Assert.AreEqual("Modelfactor overloopdebiet volkomen overlaat [-]", dynamicProperties[modelFactorSuperCriticalFlowPropertyIndex].DisplayName);
+ Assert.AreEqual("Voorlandprofiel", dynamicProperties[foreshoreProfilePropertyIndex].DisplayName);
+ Assert.AreEqual("Dam", dynamicProperties[useBreakWaterPropertyIndex].DisplayName);
+ Assert.AreEqual("Voorlandgeometrie", dynamicProperties[useForeshorePropertyIndex].DisplayName);
+ Assert.AreEqual("Locatie met hydraulische randvoorwaarden", dynamicProperties[hydraulicBoundaryLocationPropertyIndex].DisplayName);
+ Assert.AreEqual("Stormduur [uur]", dynamicProperties[stormDurationPropertyIndex].DisplayName);
+
+ mockRepository.VerifyAll();
+ }
+
+ [Test]
public void SetStructure_StructureInSection_UpdateSectionResults()
{
// Setup