public void TallyTeam( ICollection <NflTeam> teamList, string season, DateTime focusDate, string teamCode) { var team = new NflTeam(teamCode); // simple code constructor if (TimeKeeper.IsItRegularSeason()) { team.LoadGames(team.TeamCode, season); GameScope = GameScopeFromGameList( team.GameList); } else { GameScope = $@"Regular season Games { Int32.Parse(season)-1 }" ; team.LoadPreviousRegularSeasonGames( team.TeamCode, season, focusDate); } team.TallyStats(Breakdowns); teamList.Add(team); var breakdownKey = $"{team.TeamCode}-Q"; var breakdownFile = $@"{Utility.OutputDirectory()}\\{ TimeKeeper.CurrentSeason() }\\Metrics\\breakdowns\\{breakdownKey}.htm" ; Breakdowns.Dump( breakdownKey, breakdownFile); }
public void TallyTeam( ICollection <NflTeam> teamList, string season, DateTime focusDate, string teamCode) { var team = new NflTeam(teamCode); // simple code constructor //if ( teamCode == "IC") // Console.WriteLine("Test Team"); if (thisSeasonOnly) { team.LoadGames(team.TeamCode, season); } else { team.LoadPreviousRegularSeasonGames( team.TeamCode, season, focusDate); } team.TallyStats( breakdowns: null); teamList.Add(team); }
public void TallyTeam(ICollection <NflTeam> teamList, string season, DateTime focusDate, string teamCode) { var team = new NflTeam(teamCode); // simple code constructor if (thisSeasonOnly) { team.LoadGames(team.TeamCode, season); } else { team.LoadPreviousRegularSeasonGames(team.TeamCode, season, focusDate); } team.TallyStats(); teamList.Add(team); }