Index: Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.KernelWrapper/Creators/FailureMechanismSectionAssemblyCalculatorInputCreator.cs =================================================================== diff -u -r5180f3c52adce7b8214e51b81b0ad8c7b21f4521 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.KernelWrapper/Creators/FailureMechanismSectionAssemblyCalculatorInputCreator.cs (.../FailureMechanismSectionAssemblyCalculatorInputCreator.cs) (revision 5180f3c52adce7b8214e51b81b0ad8c7b21f4521) +++ Ringtoets/AssemblyTool/src/Ringtoets.AssemblyTool.KernelWrapper/Creators/FailureMechanismSectionAssemblyCalculatorInputCreator.cs (.../FailureMechanismSectionAssemblyCalculatorInputCreator.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -288,12 +288,10 @@ /// the input for. /// The calculated probability to create the input for. /// The converted . - /// Thrown when: + /// Thrown when /// is an invalid . - /// Thrown when - /// is a valid but unsupported . - /// Thrown when any input parameter has an - /// invalid value. + /// Thrown when + /// is a valid but unsupported . private static TailorMadeProbabilityCalculationResult ConvertTailorMadeProbabilityCalculationResult( TailorMadeAssessmentProbabilityCalculationResultType tailorMadeAssessmentResult, double probability) Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs =================================================================== diff -u -rc28810d9b3079290aeef62b6b9c0eb9fd6b49ac4 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision c28810d9b3079290aeef62b6b9c0eb9fd6b49ac4) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -153,11 +153,11 @@ .ToList(); DataGridViewControl.SetDataSource(sectionResultRows); - foreach (TSectionResultRow sectionResultRow in sectionResultRows) + sectionResultRows?.ForEachElementDo(row => { - sectionResultRow.RowUpdated += RowUpdated; - sectionResultRow.RowUpdateDone += RowUpdateDone; - } + row.RowUpdated += RowUpdated; + row.RowUpdateDone += RowUpdateDone; + }); } /// Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs =================================================================== diff -u -rc28810d9b3079290aeef62b6b9c0eb9fd6b49ac4 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs (.../FailureMechanismSectionResultRow.cs) (revision c28810d9b3079290aeef62b6b9c0eb9fd6b49ac4) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionResultRow.cs (.../FailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -79,7 +79,7 @@ /// /// Updates all data and states for the row. /// - public virtual void Update() {} + public abstract void Update(); /// /// Gets the that is the source of this row. Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs =================================================================== diff -u -r1cea8cc5989e286fec381ae2ca5b18a0f7ac6a38 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs (.../FailureMechanismResultViewTest.cs) (revision 1cea8cc5989e286fec381ae2ca5b18a0f7ac6a38) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs (.../FailureMechanismResultViewTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -221,6 +221,7 @@ // Precondition Assert.IsFalse(invalidated); Assert.IsFalse(row.Updated); + // When row.RowUpdated?.Invoke(row, EventArgs.Empty); sectionResult.NotifyObservers(); Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs =================================================================== diff -u -reafd42ded45d3c8c39100bc5318562f734af0302 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs (.../FailureMechanismSectionResultRowTestHelper.cs) (revision eafd42ded45d3c8c39100bc5318562f734af0302) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs (.../FailureMechanismSectionResultRowTestHelper.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -29,7 +29,7 @@ namespace Ringtoets.Common.Forms.TestUtil { /// - /// Class that can be used to test properties of a . + /// Class that can be used to assert properties of a . /// public static class FailureMechanismSectionResultRowTestHelper { Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs =================================================================== diff -u -r7e64235010367ff8791434dfb717150e8f52e3ba -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision 7e64235010367ff8791434dfb717150e8f52e3ba) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionSectionResultRow.cs (.../DuneErosionSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -89,5 +89,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs =================================================================== diff -u -r7e64235010367ff8791434dfb717150e8f52e3ba -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 7e64235010367ff8791434dfb717150e8f52e3ba) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -116,5 +116,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new DuneErosionFailureMechanismSectionResult(section); + var row = new DuneErosionSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs =================================================================== diff -u -r44420c717ac32101ba0da4739d259c622f47976e -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs) (revision 44420c717ac32101ba0da4739d259c622f47976e) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -90,5 +90,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -rca0cf77c91b38a4361e96fb95d431eb7c9984501 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision ca0cf77c91b38a4361e96fb95d431eb7c9984501) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -117,5 +117,20 @@ // Assert Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new GrassCoverErosionOutwardsFailureMechanismSectionResult(section); + var row = new GrassCoverErosionOutwardsFailureMechanismSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs (.../GrassCoverSlipOffInwardsSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRow.cs (.../GrassCoverSlipOffInwardsSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -89,5 +89,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs (.../GrassCoverSlipOffOutwardsSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRow.cs (.../GrassCoverSlipOffOutwardsSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -89,5 +89,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs (.../MicrostabilitySectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MicrostabilitySectionResultRow.cs (.../MicrostabilitySectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -90,5 +90,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs (.../PipingStructureSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/PipingStructureSectionResultRow.cs (.../PipingStructureSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -89,5 +89,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRow.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -75,5 +75,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs (.../TechnicalInnovationSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/TechnicalInnovationSectionResultRow.cs (.../TechnicalInnovationSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -73,5 +73,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs (.../WaterPressureAsphaltCoverSectionResultRow.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRow.cs (.../WaterPressureAsphaltCoverSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -73,5 +73,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -117,5 +117,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new GrassCoverSlipOffInwardsFailureMechanismSectionResult(section); + var row = new GrassCoverSlipOffInwardsSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -117,5 +117,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(section); + var row = new GrassCoverSlipOffOutwardsSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -116,5 +116,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new MicrostabilityFailureMechanismSectionResult(section); + var row = new MicrostabilitySectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -116,5 +116,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new PipingStructureFailureMechanismSectionResult(section); + var row = new PipingStructureSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -99,5 +99,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new StrengthStabilityLengthwiseConstructionFailureMechanismSectionResult(section); + var row = new StrengthStabilityLengthwiseConstructionSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -99,5 +99,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new TechnicalInnovationFailureMechanismSectionResult(section); + var row = new TechnicalInnovationSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs =================================================================== diff -u -r999ba524ca29111b9474209a11b7aeabf233409f -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision 999ba524ca29111b9474209a11b7aeabf233409f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -99,5 +99,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new WaterPressureAsphaltCoverFailureMechanismSectionResult(section); + var row = new WaterPressureAsphaltCoverSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs =================================================================== diff -u -r44420c717ac32101ba0da4739d259c622f47976e -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRow.cs) (revision 44420c717ac32101ba0da4739d259c622f47976e) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismSectionResultRow.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -51,9 +51,9 @@ /// The assessment section the section result belongs to. /// Throw when any parameter is null. internal MacroStabilityInwardsFailureMechanismSectionResultRow(MacroStabilityInwardsFailureMechanismSectionResult sectionResult, - IEnumerable calculations, - MacroStabilityInwardsFailureMechanism failureMechanism, - IAssessmentSection assessmentSection) + IEnumerable calculations, + MacroStabilityInwardsFailureMechanism failureMechanism, + IAssessmentSection assessmentSection) : base(sectionResult) { if (calculations == null) @@ -132,5 +132,10 @@ return SectionResult; } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -rcb4699ab3f0ba6a23e21650ec8cec52d82d0777b -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs) (revision cb4699ab3f0ba6a23e21650ec8cec52d82d0777b) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -220,5 +220,30 @@ Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); mocks.VerifyAll(); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + var failureMechanism = new MacroStabilityInwardsFailureMechanism(); + + var mocks = new MockRepository(); + IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); + mocks.ReplayAll(); + + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new MacroStabilityInwardsFailureMechanismSectionResult(section); + var row = new MacroStabilityInwardsFailureMechanismSectionResultRow(result, + Enumerable.Empty(), + failureMechanism, + assessmentSection); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + mocks.VerifyAll(); + } } } \ No newline at end of file Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs =================================================================== diff -u -r44420c717ac32101ba0da4739d259c622f47976e -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision 44420c717ac32101ba0da4739d259c622f47976e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismSectionResultRow.cs (.../PipingFailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -131,5 +131,10 @@ return SectionResult; } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r747ff1aadc684e2bc3845c67cbc6580d34482160 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs (.../PipingFailureMechanismSectionResultRowTest.cs) (revision 747ff1aadc684e2bc3845c67cbc6580d34482160) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs (.../PipingFailureMechanismSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -217,5 +217,30 @@ Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); mocks.VerifyAll(); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + var failureMechanism = new PipingFailureMechanism(); + + var mocks = new MockRepository(); + IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); + mocks.ReplayAll(); + + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new PipingFailureMechanismSectionResult(section); + var row = new PipingFailureMechanismSectionResultRow(result, + Enumerable.Empty(), + failureMechanism, + assessmentSection); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + mocks.VerifyAll(); + } } } \ No newline at end of file Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -r4f8f3ccccf4857781fe92b05d64e54320e6bfdfe -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision 4f8f3ccccf4857781fe92b05d64e54320e6bfdfe) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -122,5 +122,10 @@ { return SectionResult.Calculation; } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r4f8f3ccccf4857781fe92b05d64e54320e6bfdfe -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision 4f8f3ccccf4857781fe92b05d64e54320e6bfdfe) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -301,5 +301,29 @@ Assert.AreEqual(assessmentLayerThree, sectionResult.TailorMadeAssessmentProbability); mocks.VerifyAll(); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + var failureMechanism = new StabilityPointStructuresFailureMechanism(); + + var mocks = new MockRepository(); + IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); + mocks.ReplayAll(); + + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new StabilityPointStructuresFailureMechanismSectionResult(section); + var row = new StabilityPointStructuresFailureMechanismSectionResultRow(result, + failureMechanism, + assessmentSection); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + mocks.VerifyAll(); + } } } \ No newline at end of file Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs =================================================================== diff -u -r607494c1b1e1e5fd53be1f474c3e8042245e6467 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision 607494c1b1e1e5fd53be1f474c3e8042245e6467) +++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverSectionResultRow.cs (.../StabilityStoneCoverSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -90,5 +90,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs =================================================================== diff -u -r607494c1b1e1e5fd53be1f474c3e8042245e6467 -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision 607494c1b1e1e5fd53be1f474c3e8042245e6467) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -116,5 +116,20 @@ // Assert Assert.AreEqual(newValue, result.AssessmentLayerThree, row.AssessmentLayerThree.GetAccuracy()); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new StabilityStoneCoverFailureMechanismSectionResult(section); + var row = new StabilityStoneCoverSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs =================================================================== diff -u -r44420c717ac32101ba0da4739d259c622f47976e -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs) (revision 44420c717ac32101ba0da4739d259c622f47976e) +++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRow.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -90,5 +90,10 @@ SectionResult.AssessmentLayerThree = value.ToPrecision(SectionResult.AssessmentLayerThree.NumberOfDecimalPlaces); } } + + public override void Update() + { + throw new NotImplementedException(); + } } } \ No newline at end of file Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r24264daa736095a5d9b14415ffced9601cb123fe -rbc3f585dcc4ef814652ff76d2713ffc14fe247cb --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs) (revision 24264daa736095a5d9b14415ffced9601cb123fe) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs) (revision bc3f585dcc4ef814652ff76d2713ffc14fe247cb) @@ -118,5 +118,20 @@ // Assert Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); } + + [Test] + public void Update_Always_ThrowsNotImplementedException() + { + // Setup + FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); + var result = new WaveImpactAsphaltCoverFailureMechanismSectionResult(section); + var row = new WaveImpactAsphaltCoverFailureMechanismSectionResultRow(result); + + // Call + TestDelegate call = () => row.Update(); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file