public Match(int id,Team homeTeam,Team awayTeam,Score score) { this.Id = id; this.HomeTeam = homeTeam; this.AwayTeam = awayTeam; this.Score = score; }
public Match(Team homeTeam, Team awayTeam, Score score) { this.checkTeams = this.CheckTeams(homeTeam, awayTeam); this.HomeTeam = homeTeam; this.AwayTeam = awayTeam; this.Score = score; }
public Match(Team homeTeam, Team awayTeam, Score score, int id) { if (homeTeam.Name == awayTeam.Name) { throw new ArgumentException(MsgConstants.TeamsShouldBeDifferent); } this.HomeTeam = homeTeam; this.AwayTeam = awayTeam; this.MatchScore = score; this.Id = id; }
public Match(Team homeTeam, Team awayTeam, Score score) { this.HomeTeam = homeTeam; this.AwayTeam = awayTeam; this.Score = score; }