public static TeamAnalysis GetTeamGradeAnalysis(Team team) { TeamAnalysis analysis = new TeamAnalysis(); int cumGrade = 0; foreach (Game game in team.GetGames()) { TeamGameAnalysis teamGameAnalysis = new TeamGameAnalysis(team, game); cumGrade += teamGameAnalysis.GameGrade; teamGameAnalysis.CumulativeGrade = cumGrade; analysis.AddTeamGameAnalysis(teamGameAnalysis); } return analysis; }
public void AddTeamGameAnalysis(TeamGameAnalysis teamGameAnalysis) { _teamGameAnalyses.Add(teamGameAnalysis); }