Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismProperties.cs =================================================================== diff -u -r95d1061091be2e27b08a196af1987af4144ef35e -r44efdfd0a9a543a9edb3e44ece1be341ade39c32 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismProperties.cs (.../MacroStabilityInwardsFailureMechanismProperties.cs) (revision 95d1061091be2e27b08a196af1987af4144ef35e) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismProperties.cs (.../MacroStabilityInwardsFailureMechanismProperties.cs) (revision 44efdfd0a9a543a9edb3e44ece1be341ade39c32) @@ -38,7 +38,6 @@ private const int inAssemblyPropertyIndex = 3; private const int aPropertyIndex = 4; private const int bPropertyIndex = 5; - private const int applyLengthEffectInSectionPropertyIndex = 8; private readonly IAssessmentSection assessmentSection; @@ -89,8 +88,7 @@ private static bool ShouldHidePropertyWhenFailureMechanismNotPartOfAssembly(string propertyName) { return nameof(A).Equals(propertyName) - || nameof(B).Equals(propertyName) - || nameof(ApplyLengthEffectInSection).Equals(propertyName); + || nameof(B).Equals(propertyName); } #region Length effect parameters @@ -126,19 +124,6 @@ } } - [DynamicVisible] - [PropertyOrder(applyLengthEffectInSectionPropertyIndex)] - [ResourcesCategory(typeof(RiskeerCommonFormsResources), nameof(RiskeerCommonFormsResources.Categories_LengthEffect))] - [ResourcesDisplayName(typeof(RiskeerCommonFormsResources), nameof(RiskeerCommonFormsResources.FailureMechanism_ApplyLengthEffectInSection_DisplayName))] - [ResourcesDescription(typeof(RiskeerCommonFormsResources), nameof(RiskeerCommonFormsResources.FailureMechanism_ApplyLengthEffectInSection_Description))] - public bool ApplyLengthEffectInSection - { - get - { - return data.GeneralInput.ApplyLengthEffectInSection; - } - } - #endregion } } \ No newline at end of file Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismPropertiesTest.cs =================================================================== diff -u -r95d1061091be2e27b08a196af1987af4144ef35e -r44efdfd0a9a543a9edb3e44ece1be341ade39c32 --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismPropertiesTest.cs (.../MacroStabilityInwardsFailureMechanismPropertiesTest.cs) (revision 95d1061091be2e27b08a196af1987af4144ef35e) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/RegistrationState/MacroStabilityInwardsFailureMechanismPropertiesTest.cs (.../MacroStabilityInwardsFailureMechanismPropertiesTest.cs) (revision 44efdfd0a9a543a9edb3e44ece1be341ade39c32) @@ -41,7 +41,6 @@ private const int inAssemblyPropertyIndex = 2; private const int aPropertyIndex = 3; private const int bPropertyIndex = 4; - private const int applyLengthEffectInSectionPropertyIndex = 5; [Test] public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException() @@ -82,8 +81,6 @@ Assert.AreEqual(probabilityAssessmentInput.A, properties.A); Assert.AreEqual(probabilityAssessmentInput.B, properties.B); - Assert.AreEqual(failureMechanism.GeneralInput.ApplyLengthEffectInSection, properties.ApplyLengthEffectInSection); - mocks.VerifyAll(); } @@ -144,13 +141,6 @@ "De parameter 'b' die gebruikt wordt voor het lengte-effect in berekening van de maximaal toelaatbare faalkans.", true); - PropertyDescriptor applySectionLengthInSectionProperty = dynamicProperties[applyLengthEffectInSectionPropertyIndex]; - PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(applySectionLengthInSectionProperty, - lengthEffectCategory, - "Toepassen lengte-effect binnen vak", - "Geeft aan of het lengte-effect binnen een vak toegepast wordt.", - true); - mocks.VerifyAll(); } @@ -282,7 +272,6 @@ Assert.AreEqual(inAssembly, properties.DynamicVisibleValidationMethod(nameof(properties.A))); Assert.AreEqual(inAssembly, properties.DynamicVisibleValidationMethod(nameof(properties.B))); - Assert.AreEqual(inAssembly, properties.DynamicVisibleValidationMethod(nameof(properties.ApplyLengthEffectInSection))); Assert.IsTrue(properties.DynamicVisibleValidationMethod(null));