Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensions.cs =================================================================== diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensions.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensions.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensions.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -40,9 +40,7 @@ { var sectionResultEntity = new DuneErosionSectionResultEntity { - LayerOne = Convert.ToByte(result.AssessmentLayerOne), - LayerTwoA = Convert.ToByte(result.AssessmentLayerTwoA), - LayerThree = result.AssessmentLayerThree.ToNaNAsNull() + LayerOne = Convert.ToByte(result.AssessmentLayerOne) }; return sectionResultEntity; Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs =================================================================== diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs (.../DuneErosionSectionResultEntityReadExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensions.cs (.../DuneErosionSectionResultEntityReadExtensions.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -49,8 +49,6 @@ } sectionResult.AssessmentLayerOne = (AssessmentLayerOneState) entity.LayerOne; - sectionResult.AssessmentLayerTwoA = (AssessmentLayerTwoAResult) entity.LayerTwoA; - sectionResult.AssessmentLayerThree = (RoundedDouble) entity.LayerThree.ToNullAsNaN(); } } } \ No newline at end of file Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -rb8df616ca911988b921b933bead5f1ef6862d076 -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs) (revision b8df616ca911988b921b933bead5f1ef6862d076) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs (.../DuneErosionFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -23,11 +23,9 @@ using Application.Ringtoets.Storage.Create.DuneErosion; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.TestUtil; -using Core.Common.Base.Data; using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; -using Ringtoets.Common.Data.TestUtil; using Ringtoets.DuneErosion.Data; namespace Application.Ringtoets.Storage.Test.Create.DuneErosion @@ -44,34 +42,13 @@ var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()) { AssessmentLayerOne = random.NextEnumValue(), - AssessmentLayerTwoA = random.NextEnumValue(), - AssessmentLayerThree = random.NextRoundedDouble() }; // Call DuneErosionSectionResultEntity result = sectionResult.Create(); // Assert Assert.AreEqual(Convert.ToByte(sectionResult.AssessmentLayerOne), result.LayerOne); - Assert.AreEqual(Convert.ToByte(sectionResult.AssessmentLayerTwoA), result.LayerTwoA); - Assert.AreEqual(sectionResult.AssessmentLayerThree, result.LayerThree, - sectionResult.AssessmentLayerThree.GetAccuracy()); } - - [Test] - public void Create_WithNaNLevel3Result_ReturnsEntityWithExpectedResults() - { - // Setup - var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()) - { - AssessmentLayerThree = RoundedDouble.NaN - }; - - // Call - DuneErosionSectionResultEntity result = sectionResult.Create(); - - // Assert - Assert.IsNull(result.LayerThree); - } } } \ No newline at end of file Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs =================================================================== diff -u -rb096784d1845696aba767ca12194673dd9347428 -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision b096784d1845696aba767ca12194673dd9347428) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -1017,8 +1017,7 @@ actualSectionResults, (expectedItem, actualItem) => { - Assert.AreEqual(expectedItem.AssessmentLayerTwoA, actualItem.AssessmentLayerTwoA); - Assert.AreEqual(expectedItem.AssessmentLayerThree, actualItem.AssessmentLayerThree); + Assert.AreEqual(expectedItem.AssessmentLayerOne, actualItem.AssessmentLayerOne); }); } Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs =================================================================== diff -u -rf04bc7a1a7cac4b688ab59088e47f7e0a162c86a -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs (.../DuneErosionSectionResultEntityReadExtensionsTest.cs) (revision f04bc7a1a7cac4b688ab59088e47f7e0a162c86a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/DuneErosion/DuneErosionSectionResultEntityReadExtensionsTest.cs (.../DuneErosionSectionResultEntityReadExtensionsTest.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -75,38 +75,6 @@ // Assert Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne); - Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA); - Assert.AreEqual(layerThree, sectionResult.AssessmentLayerThree, 1e-6); } - - [Test] - public void Read_EntityWithNullValues_SectionResultWithNaNValues() - { - // Setup - var random = new Random(21); - var layerOne = random.NextEnumValue(); - var layerTwoA = random.NextEnumValue(); - - var collector = new ReadConversionCollector(); - - var failureMechanismSectionEntity = new FailureMechanismSectionEntity(); - collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection()); - var entity = new DuneErosionSectionResultEntity - { - LayerOne = Convert.ToByte(layerOne), - LayerTwoA = Convert.ToByte(layerTwoA), - LayerThree = null, - FailureMechanismSectionEntity = failureMechanismSectionEntity - }; - var sectionResult = new DuneErosionFailureMechanismSectionResult(new TestFailureMechanismSection()); - - // Call - entity.Read(sectionResult); - - // Assert - Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne); - Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA); - Assert.IsNaN(sectionResult.AssessmentLayerThree); - } } } \ No newline at end of file Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -rb096784d1845696aba767ca12194673dd9347428 -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision b096784d1845696aba767ca12194673dd9347428) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -766,8 +766,6 @@ foreach (DuneErosionFailureMechanismSectionResult sectionResult in sectionResults) { sectionResult.AssessmentLayerOne = GetAssessmentLayerOneState(); - sectionResult.AssessmentLayerTwoA = GetAssessmentLayerTwoAResult(); - sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); } } Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanismSectionResult.cs =================================================================== diff -u -r726dc2d421062a11b03724034de78a3a0081fb6a -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanismSectionResult.cs (.../DuneErosionFailureMechanismSectionResult.cs) (revision 726dc2d421062a11b03724034de78a3a0081fb6a) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Data/DuneErosionFailureMechanismSectionResult.cs (.../DuneErosionFailureMechanismSectionResult.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using Core.Common.Base.Data; using Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Primitives; @@ -49,9 +48,6 @@ DetailedAssessmentResultForFactorizedLowerLimitNorm = DetailedAssessmentResultType.None; TailorMadeAssessmentResult = FailureMechanismSectionAssemblyCategoryGroup.None; ManualAssemblyCategoryGroup = FailureMechanismSectionAssemblyCategoryGroup.None; - - AssessmentLayerTwoA = AssessmentLayerTwoAResult.NotCalculated; - AssessmentLayerThree = RoundedDouble.NaN; } /// @@ -103,16 +99,5 @@ /// Gets or sets the manually selected assembly category group. /// public FailureMechanismSectionAssemblyCategoryGroup ManualAssemblyCategoryGroup { get; set; } - - /// - /// Gets or sets the value of the detailed assessment of safety per failure mechanism section, for which - /// the result is a value of . - /// - public AssessmentLayerTwoAResult AssessmentLayerTwoA { get; set; } - - /// - /// Gets or sets the value of the tailored assessment of safety. - /// - public RoundedDouble AssessmentLayerThree { get; set; } } } \ No newline at end of file Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismSectionResultTest.cs =================================================================== diff -u -r726dc2d421062a11b03724034de78a3a0081fb6a -r90628a1cd9c2bee5e41f323e448c799044aec528 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismSectionResultTest.cs (.../DuneErosionFailureMechanismSectionResultTest.cs) (revision 726dc2d421062a11b03724034de78a3a0081fb6a) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Data.Test/DuneErosionFailureMechanismSectionResultTest.cs (.../DuneErosionFailureMechanismSectionResultTest.cs) (revision 90628a1cd9c2bee5e41f323e448c799044aec528) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using Core.Common.Base.Data; using NUnit.Framework; using Ringtoets.AssemblyTool.Data; using Ringtoets.Common.Data.FailureMechanism; @@ -52,29 +51,6 @@ Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.None, result.TailorMadeAssessmentResult); Assert.IsFalse(result.UseManualAssemblyCategoryGroup); Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.None, result.ManualAssemblyCategoryGroup); - - Assert.AreEqual(AssessmentLayerTwoAResult.NotCalculated, result.AssessmentLayerTwoA); - Assert.IsNaN(result.AssessmentLayerThree); } - - [Test] - [TestCase(double.NaN)] - [TestCase(double.PositiveInfinity)] - [TestCase(double.NegativeInfinity)] - [TestCase(5)] - [TestCase(0.5)] - public void AssessmentLayerThree_SetNewValue_ReturnsNewValue(double newValue) - { - // Setup - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new DuneErosionFailureMechanismSectionResult(section); - - // Call - result.AssessmentLayerThree = (RoundedDouble) newValue; - - // Assert - Assert.AreEqual(newValue, result.AssessmentLayerThree, - result.AssessmentLayerThree.GetAccuracy()); - } } } \ No newline at end of file