public IReportBuilder EnrichReport(IEnumerable <Player> players, IReportBuilder partialReport) { if (players == null) { throw new ArgumentNullException(nameof(players)); } if (partialReport == null) { throw new ArgumentNullException(nameof(partialReport)); } var averageHeight = players.Select(p => ConvertPlayerHeightToCm(p.Height)).Average(); return(partialReport.WithAverageHeight(averageHeight)); }