Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs =================================================================== diff -u -r701e2f2f7db6be7e172b2eaeb46f24a964281d9f -r5faae844d42e2e290872ad86510bf1b11d95bdd1 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision 701e2f2f7db6be7e172b2eaeb46f24a964281d9f) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision 5faae844d42e2e290872ad86510bf1b11d95bdd1) @@ -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.DuneErosion.Data; @@ -45,7 +41,7 @@ /// Thrown when is null. /// Thrown when /// is a valid value, but unsupported. - public DuneErosionSectionResultRow(DuneErosionFailureMechanismSectionResult sectionResult) + public DuneErosionSectionResultRow(DuneErosionFailureMechanismSectionResult sectionResult) : base(sectionResult) {} /// @@ -67,21 +63,6 @@ } /// - /// Gets the assessment layer two a of the . - /// - public AssessmentLayerTwoAResult AssessmentLayerTwoA - { - get - { - return SectionResult.AssessmentLayerTwoA; - } - set - { - SectionResult.AssessmentLayerTwoA = value; - } - } - - /// /// Gets or sets the value of the detailed assessment of safety per failure mechanism section /// for the factorized signaling norm (Cat Iv - IIv). /// @@ -194,22 +175,6 @@ } } - /// - /// 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/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs =================================================================== diff -u -r701e2f2f7db6be7e172b2eaeb46f24a964281d9f -r5faae844d42e2e290872ad86510bf1b11d95bdd1 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 701e2f2f7db6be7e172b2eaeb46f24a964281d9f) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 5faae844d42e2e290872ad86510bf1b11d95bdd1) @@ -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.DuneErosion.Data; @@ -61,47 +59,8 @@ Assert.AreEqual(result.DetailedAssessmentResultForFactorizedLowerLimitNorm, row.DetailedAssessmentResultForFactorizedLowerLimitNorm); Assert.AreEqual(SelectableFailureMechanismSectionAssemblyCategoryGroupConverter.ConvertTo(result.TailorMadeAssessmentResult), row.TailorMadeAssessmentResult); - - Assert.AreEqual(result.AssessmentLayerTwoA, row.AssessmentLayerTwoA); - Assert.AreEqual(result.AssessmentLayerThree, row.AssessmentLayerThree); - - TestHelper.AssertTypeConverter( - nameof(DuneErosionSectionResultRow.AssessmentLayerThree)); } - [Test] - public void AssessmentLayerTwoA_AlwaysOnChange_ResultPropertyChanged() - { - // Setup - const AssessmentLayerTwoAResult newValue = AssessmentLayerTwoAResult.Successful; - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new DuneErosionFailureMechanismSectionResult(section); - var row = new DuneErosionSectionResultRow(result); - - // Call - row.AssessmentLayerTwoA = newValue; - - // Assert - Assert.AreEqual(newValue, result.AssessmentLayerTwoA); - } - - [Test] - public void AssessmentLayerThree_AlwaysOnChange_ResultPropertyChanged() - { - // Setup - var random = new Random(21); - double newValue = random.NextDouble(); - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new DuneErosionFailureMechanismSectionResult(section); - var row = new DuneErosionSectionResultRow(result); - - // Call - row.AssessmentLayerThree = (RoundedDouble) newValue; - - // Assert - Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); - } - #region Registration [Test]