public TicTacToeGame( ITicTacToeBoard ticTacToeBoard, ITicTacToePlayer player1, ITicTacToePlayer player2, IGameJudge gameJudge, IGameRenderer gameRenderer, IGamePauser gamePauser ) { _ticTacToeBoard = ticTacToeBoard; _player1 = player1; _player2 = player2; _gameJudge = gameJudge; _gameRenderer = gameRenderer; _gamePauser = gamePauser; }
public TicTacToeGameTests() { TicTacToeBoard = Substitute.For<ITicTacToeBoard>(); Player1 = Substitute.For<ITicTacToePlayer>(); Player2 = Substitute.For<ITicTacToePlayer>(); GameJudge = Substitute.For<IGameJudge>(); GameRenderer = Substitute.For<IGameRenderer>(); GamePauser = Substitute.For<IGamePauser>(); Sut = new TicTacToeGame( TicTacToeBoard, Player1, Player2, GameJudge, GameRenderer, GamePauser ); }