Exemple #1
0
        private void CheckGamesForWeek(int week)
        {
            NflWeek = new NFLWeek(
                Season,
                week,
                loadGames: true);

            foreach (var game in NflWeek.GamesList())
            {
                if (!game.Played())
                {
                    continue;
                }

                var ds = Utility.TflWs.GetGameStats(
                    gameCode: game.GameCode,
                    season: Season,
                    week: $"{week:0#}");
                if (ds.Tables[0].Rows.Count == 0)
                {
                    GameError("No Stats");
                }
                GamesChecked++;
            }
            ReportResults(GamesChecked, "Games");
        }
Exemple #2
0
        private void CheckLineupsForWeek(int week)
        {
            NflWeek = new NFLWeek(
                Season,
                week,
                loadGames: true);

            foreach (var game in NflWeek.GamesList())
            {
                if (!game.Played())
                {
                    continue;
                }

                CheckTeam(week, game, game.HomeTeam);
                CheckTeam(week, game, game.AwayTeam);

                LineupsChecked++;
            }
            ReportResults(LineupsChecked, "Lineups");
        }