public Report GenerateReportForPlayers(RealGameTypes gameType, Period period, Properties properties) { var playersInScope = _gamesService.List <Profile>(new AllProfiles()); var playerReports = ReportForPlayers(playersInScope, gameType, period, properties); return(new Report(gameType, period, properties)); }
private static IEnumerable <ReportDetails> ReportForPlayers(IEnumerable <Profile> playersInScope, RealGameTypes gameType, Period period, Properties properties) { foreach (var profile in playersInScope) { yield return(new ReportDetails(profile, gameType, period, properties)); } }