public TennisGame1(string player1Name, string player2Name) { this.tennisPlayer1 = new TennisPlayer() { Name = player1Name }; this.tennisPlayer2 = new TennisPlayer() { Name = player2Name }; }
public void WonPoint(string playerName) { TennisPlayer player = GetPlayer(playerName); player.Score++; }