Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -rf0ba49747b6479aae5f07afdd435fcc87e2d9181 -r83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision f0ba49747b6479aae5f07afdd435fcc87e2d9181) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision 83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406) @@ -26,7 +26,6 @@ using Ringtoets.ClosingStructures.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Exceptions; -using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.Helpers; using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.Common.Forms.Views; @@ -274,17 +273,6 @@ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))] public double CombinedAssemblyProbability { get; private set; } - /// - /// Gets the of the wrapped - /// . - /// - /// null if the wrapped section result does not have a calculation - /// set. Otherwise the calculation of the wrapped section result is returned. - public StructuresCalculation GetSectionResultCalculation() - { - return SectionResult.Calculation; - } - public override void Update() { UpdateDerivedData(); Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -rf0ba49747b6479aae5f07afdd435fcc87e2d9181 -r83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision f0ba49747b6479aae5f07afdd435fcc87e2d9181) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406) @@ -465,60 +465,6 @@ } } - [Test] - public void GetSectionResultCalculation_NoCalculationSetOnSectionResult_ReturnNull() - { - // Setup - var failureMechanism = new ClosingStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new ClosingStructuresFailureMechanismSectionResult(section); - - // Precondition - Assert.IsNull(result.Calculation); - - var row = new ClosingStructuresFailureMechanismSectionResultRow(result, failureMechanism, assessmentSection, ConstructionProperties); - - // Call - StructuresCalculation calculation = row.GetSectionResultCalculation(); - - // Assert - Assert.IsNull(calculation); - mocks.VerifyAll(); - } - - [Test] - public void GetSectionResultCalculation_WithCalculationSetOnSectionResult_ReturnCalculation() - { - // Setup - var failureMechanism = new ClosingStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - var expectedCalculation = new StructuresCalculation(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new ClosingStructuresFailureMechanismSectionResult(section) - { - Calculation = expectedCalculation - }; - - var row = new ClosingStructuresFailureMechanismSectionResultRow(result, failureMechanism, assessmentSection, ConstructionProperties); - - // Call - StructuresCalculation calculation = row.GetSectionResultCalculation(); - - // Assert - Assert.AreSame(expectedCalculation, calculation); - mocks.VerifyAll(); - } - private static TestClosingStructuresCalculation CreateCalculationWithOutput() { return new TestClosingStructuresCalculation @@ -737,8 +683,8 @@ calculator.CombinedAssemblyCategoryOutput = assemblyCategoryGroup; // Call - var row = new ClosingStructuresFailureMechanismSectionResultRow(result, - failureMechanism, + var row = new ClosingStructuresFailureMechanismSectionResultRow(result, + failureMechanism, assessmentSection, ConstructionProperties);