Beispiel #1
0
 public Match(Team homeTeam, Team awayTeam, Score score, int id)
 {
     this.HomeTeam = homeTeam;
     this.AwayTeam = awayTeam;
     this.Score = score;
     this.Id = id;
 }
Beispiel #2
0
 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");
 }
Beispiel #3
0
 private static void AddMatch(Team teamFirst, Team teamSecond, Score score, int id)
 {
 }