Exemplo n.º 1
0
 public TeamStats(TeamName teamName, IEnumerable <Game> allCompetitionGames, IEnumerable <ITable> seasonEndTables)
 {
     Name                 = teamName;
     teamsGames           = allCompetitionGames.Where(Name.PlayedIn).ToList();
     this.seasonEndTables = seasonEndTables;
     wins                 = teamsGames.Where(g => Name.Matches(g.Winner));
 }