示例#1
0
文件: Match.cs 项目: jechev/OOP
 public Match(int id,Team homeTeam,Team awayTeam,Score score)
 {
     this.Id = id;
     this.HomeTeam = homeTeam;
     this.AwayTeam = awayTeam;
     this.Score = score;
 }
示例#2
0
 public Match(Team homeTeam, Team awayTeam, Score score)
 {
     this.checkTeams = this.CheckTeams(homeTeam, awayTeam);
     this.HomeTeam = homeTeam;
     this.AwayTeam = awayTeam;
     this.Score = score;
 }
示例#3
0
        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;
        }
示例#4
0
 public Match(Team homeTeam, Team awayTeam, Score score)
 {
     this.HomeTeam = homeTeam;
     this.AwayTeam = awayTeam;
     this.Score = score;
 }