C# Class TennisKata.Defactored2.TennisGame

Mostrar archivo Open project: shadowman/tenniskata-kake-dojo Class Usage Examples

Public Properties

Property Type Description
P1point int
P1res string
P2point int
P2res string

Public Methods

Method Description
GetScore ( ) : string
P1Score ( ) : void
P2Score ( ) : void
SetP1Score ( int number ) : void
SetP2Score ( int number ) : void
TennisGame ( string player1Name, string player2Name )
WonPoint ( string player ) : void

Method Details

GetScore() public method

public GetScore ( ) : string
return string

P1Score() public method

public P1Score ( ) : void
return void

P2Score() public method

public P2Score ( ) : void
return void

SetP1Score() public method

public SetP1Score ( int number ) : void
number int
return void

SetP2Score() public method

public SetP2Score ( int number ) : void
number int
return void

TennisGame() public method

public TennisGame ( string player1Name, string player2Name )
player1Name string
player2Name string

WonPoint() public method

public WonPoint ( string player ) : void
player string
return void

Property Details

P1point public_oe property

public int P1point
return int

P1res public_oe property

public string P1res
return string

P2point public_oe property

public int P2point
return int

P2res public_oe property

public string P2res
return string