public Match(Team homeTeam, Team awayTeam, Score score, int id) { this.HomeTeam = homeTeam; this.AwayTeam = awayTeam; this.Score = score; this.Id = id; }
private static void AddTeam(string name, string nickname, DateTime dateFounded) { if (!teams.Any(t => t.Name == name )) { var team = new Team(name, nickname, dateFounded); teams.Add(team); } throw new ArgumentException("This team is created"); }
private static void AddMatch(Team teamFirst, Team teamSecond, Score score, int id) { }