Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationService.cs =================================================================== diff -u -r5e6eacaf76f765ba77febee673e9e94895e46feb -r7f9ffc9e3636023563eedd6cc95bad8c4b158324 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationService.cs (.../GrassCoverErosionInwardsCalculationService.cs) (revision 5e6eacaf76f765ba77febee673e9e94895e46feb) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Service/GrassCoverErosionInwardsCalculationService.cs (.../GrassCoverErosionInwardsCalculationService.cs) (revision 7f9ffc9e3636023563eedd6cc95bad8c4b158324) @@ -97,18 +97,7 @@ private static IEnumerable ParseForeshore(GrassCoverErosionInwardsInput input) { - ProfileSection firstProfileSection = input.ForeshoreGeometry.FirstOrDefault(); - if (!input.UseForeshore || firstProfileSection == null) - { - yield break; - } - - yield return new HydraRingForelandPoint(firstProfileSection.StartingPoint.X, firstProfileSection.StartingPoint.Y); - - foreach (var foreshore in input.ForeshoreGeometry) - { - yield return new HydraRingForelandPoint(foreshore.EndingPoint.X, foreshore.EndingPoint.Y); - } + return input.ForeshoreGeometry.Select(c => new HydraRingForelandPoint(c.X, c.Y)); } private static IEnumerable ParseProfilePoints(IEnumerable profileSections)