Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs =================================================================== diff -u -r8fbc77385dee9bc30d5c69a24e61ff1a1e95d244 -rc3c46c4eb113e3fbcfbe45d58cce9cf8108e5aee --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs) (revision 8fbc77385dee9bc30d5c69a24e61ff1a1e95d244) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs) (revision c3c46c4eb113e3fbcfbe45d58cce9cf8108e5aee) @@ -20,12 +20,8 @@ // All rights reserved. using System; -using System.ComponentModel; -using Core.Common.Base.Data; using Ringtoets.AssemblyTool.Data; using Ringtoets.AssemblyTool.Forms; -using Ringtoets.Common.Data.FailureMechanism; -using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; using Ringtoets.Common.Primitives; using Ringtoets.GrassCoverErosionOutwards.Data; @@ -175,37 +171,6 @@ } } - /// - /// Gets or sets the value representing the result of the layer 2a assessment. - /// - public AssessmentLayerTwoAResult AssessmentLayerTwoA - { - get - { - return SectionResult.AssessmentLayerTwoA; - } - set - { - SectionResult.AssessmentLayerTwoA = value; - } - } - - /// - /// Gets or sets the value of the tailored assessment of safety. - /// - [TypeConverter(typeof(NoValueRoundedDoubleConverter))] - public RoundedDouble AssessmentLayerThree - { - get - { - return SectionResult.AssessmentLayerThree; - } - set - { - SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); - } - } - public override void Update() {} } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r8fbc77385dee9bc30d5c69a24e61ff1a1e95d244 -rc3c46c4eb113e3fbcfbe45d58cce9cf8108e5aee --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision 8fbc77385dee9bc30d5c69a24e61ff1a1e95d244) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision c3c46c4eb113e3fbcfbe45d58cce9cf8108e5aee) @@ -21,7 +21,6 @@ using System; using Core.Common.Base; -using Core.Common.Base.Data; using Core.Common.TestUtil; using NUnit.Framework; using Rhino.Mocks; @@ -30,7 +29,6 @@ using Ringtoets.AssemblyTool.KernelWrapper.TestUtil.Calculators; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Data.TestUtil; -using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; using Ringtoets.Common.Primitives; using Ringtoets.GrassCoverErosionOutwards.Data; @@ -61,48 +59,8 @@ Assert.AreEqual(result.DetailedAssessmentResultForFactorizedLowerLimitNorm, row.DetailedAssessmentResultForFactorizedLowerLimitNorm); Assert.AreEqual(SelectableFailureMechanismSectionAssemblyCategoryGroupConverter.ConvertTo(result.TailorMadeAssessmentResult), row.TailorMadeAssessmentResult); - - Assert.AreEqual(result.AssessmentLayerTwoA, row.AssessmentLayerTwoA); - Assert.AreEqual(row.AssessmentLayerThree, result.AssessmentLayerThree); - - TestHelper.AssertTypeConverter( - nameof(GrassCoverErosionOutwardsFailureMechanismSectionResultRow.AssessmentLayerThree)); } - [Test] - public void AssessmentLayerTwoA_AlwaysOnChange_ResultPropertyChanged() - { - // Setup - const AssessmentLayerTwoAResult newValue = AssessmentLayerTwoAResult.Successful; - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new GrassCoverErosionOutwardsFailureMechanismSectionResult(section); - var row = new GrassCoverErosionOutwardsFailureMechanismSectionResultRow(result); - - // Call - row.AssessmentLayerTwoA = newValue; - - // Assert - Assert.AreEqual(newValue, result.AssessmentLayerTwoA); - } - - [Test] - public void AssessmentLayerThree_ValueSet_ReturnExpectedValue() - { - // Setup - var random = new Random(21); - RoundedDouble assessmentLayerThree = random.NextRoundedDouble(); - - var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult( - FailureMechanismSectionTestFactory.CreateFailureMechanismSection()); - var row = new GrassCoverErosionOutwardsFailureMechanismSectionResultRow(sectionResult); - - // Call - row.AssessmentLayerThree = assessmentLayerThree; - - // Assert - Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); - } - #region Registration [Test]