public void CanCreateScrabbleManager() { gameFactory = Substitute.For <IGameFactory>(); board = new Board(); drawer = Substitute.For <ITileDrawer>(); goHandler = Substitute.For <IGoHandler>(); aiGoHandler = Substitute.For <IAiGoHandler>(); gameList = Substitute.For <IGameRepository>(); manager = new ScrabbleManager(gameFactory, board, drawer, goHandler, aiGoHandler, gameList); }
public ScrabbleManager( IGameFactory gameFactory, Board board, ITileDrawer drawer, IGoHandler goHandler, IAiGoHandler aiGoHandler, IGameRepository gameRepo) { this.gameFactory = gameFactory; this.board = board; this.drawer = drawer; this.goHandler = goHandler; this.aiGoHandler = aiGoHandler; this.gameRepo = gameRepo; }