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"); }
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"); }