Example #1
0
        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));
        }
Example #2
0
 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));
     }
 }