Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -r01d9fa228242fbc40d96844c43b10dd281e3edbf -r481507356af9b0ed7ed0de2493275a6f8c2f47ea --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 01d9fa228242fbc40d96844c43b10dd281e3edbf) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 481507356af9b0ed7ed0de2493275a6f8c2f47ea) @@ -110,7 +110,8 @@ AddForeshoreProfiles(closingStructuresFailureMechanism.ForeshoreProfiles); ConfigureClosingStructuresFailureMechanism(closingStructuresFailureMechanism, assessmentSection); AddSections(closingStructuresFailureMechanism); - SetSectionResults(closingStructuresFailureMechanism.SectionResults); + SetSectionResults(closingStructuresFailureMechanism.SectionResults, + (StructuresCalculation)closingStructuresFailureMechanism.Calculations.First()); StabilityPointStructuresFailureMechanism stabilityPointStructuresFailureMechanism = assessmentSection.StabilityPointStructures; AddForeshoreProfiles(stabilityPointStructuresFailureMechanism.ForeshoreProfiles); @@ -465,13 +466,20 @@ failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); } - private static void SetSectionResults(IEnumerable sectionResults) + private static void SetSectionResults(IEnumerable sectionResults, + StructuresCalculation calculation) { var random = new Random(21); + var firstSectionResultHasCalculation = false; foreach (var sectionResult in sectionResults) { sectionResult.AssessmentLayerOne = random.NextBoolean(); - sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); + sectionResult.AssessmentLayerThree = (RoundedDouble)random.NextDouble(); + if (!firstSectionResultHasCalculation) + { + sectionResult.Calculation = calculation; + firstSectionResultHasCalculation = true; + } } }