Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -re2e6d944af7b0cea6c9c34e77bd0644149526c37 -r1e9309149f9387c4e8b10f6c5f429797220b0ef8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision e2e6d944af7b0cea6c9c34e77bd0644149526c37) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 1e9309149f9387c4e8b10f6c5f429797220b0ef8) @@ -65,7 +65,8 @@ GrassCoverErosionInwardsFailureMechanism grassCoverErosionInwardsFailureMechanism = assessmentSection.GrassCoverErosionInwards; ConfigureGrassCoverErosionInwardsFailureMechanism(grassCoverErosionInwardsFailureMechanism, assessmentSection); AddSections(grassCoverErosionInwardsFailureMechanism); - SetSectionResults(grassCoverErosionInwardsFailureMechanism.SectionResults); + SetSectionResults(grassCoverErosionInwardsFailureMechanism.SectionResults, + grassCoverErosionInwardsFailureMechanism.Calculations.OfType()); AddSections(assessmentSection.MacrostabilityInwards); SetSectionResults(assessmentSection.MacrostabilityInwards.SectionResults); @@ -358,13 +359,19 @@ } } - private static void SetSectionResults(IEnumerable sectionResults) + private static void SetSectionResults(IEnumerable sectionResults, IEnumerable calculations) { var random = new Random(21); + bool firstSectionResultHasCalculation = false; foreach (var sectionResult in sectionResults) { sectionResult.AssessmentLayerOne = Convert.ToBoolean(random.Next(0, 2)); sectionResult.AssessmentLayerThree = (RoundedDouble) random.NextDouble(); + if (!firstSectionResultHasCalculation) + { + sectionResult.Calculation = calculations.First(); + firstSectionResultHasCalculation = true; + } } }