Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs =================================================================== diff -u -rd50c59f03bb0dda390a20e79b402fd91f884234a -r5d503cf8885ced4799e5ad44242038d99e04b162 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision d50c59f03bb0dda390a20e79b402fd91f884234a) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision 5d503cf8885ced4799e5ad44242038d99e04b162) @@ -142,6 +142,18 @@ return calculations.Select(AsCalculationWithLocation).Where(c => c != null); } + private static void ValidateSectionResults(IEnumerable sectionResults) + { + if (sectionResults == null) + { + throw new ArgumentNullException("sectionResults"); + } + if (sectionResults.Any(sr => sr == null)) + { + throw new ArgumentException("SectionResults contains an entry without value.", "sectionResults"); + } + } + /// /// Transforms the into a . /// @@ -162,18 +174,6 @@ return new CalculationWithLocation(calculation, calculation.InputParameters.DikeProfile.WorldReferencePoint); } - private static void ValidateSectionResults(IEnumerable sectionResults) - { - if (sectionResults == null) - { - throw new ArgumentNullException("sectionResults"); - } - if (sectionResults.Any(sr => sr == null)) - { - throw new ArgumentException("SectionResults contains an entry without value.", "sectionResults"); - } - } - private static SectionResultWithCalculationAssignment AsCalculationAssignment( GrassCoverErosionInwardsFailureMechanismSectionResult failureMechanismSectionResult) {