public Team GetTeam(string teamName) { Team matchingTeam = _teams.FirstOrDefault(t => t.Name == teamName); if (matchingTeam == null) { matchingTeam = new Team(teamName); _teams.Add(matchingTeam); } return matchingTeam; }
private static void AnalyzeTeam(Team team) { TeamAnalysis analysis = Grader.GetTeamGradeAnalysis(team); foreach (TeamGameAnalysis tga in analysis.GetGameAnalyses()) { Console.WriteLine("{0} {1} {2} {3} {4}\tCredit:{5} Total:{6}", tga.Team.Name, tga.RelationshipToOtherTeam, tga.OtherTeam.Record, tga.OtherTeam, tga.Game.Score, tga.GameGrade, tga.CumulativeGrade); } }