public override void Initialize() { IScoreBoard scoreBoard = new ScoreBoard(); IScoreBoardService scoreBoardService = new ScoreBoardService(scoreBoard); IRenderer renderer = new ConsoleRenderer(new CapitalizeFormatter(), new Writer()); IInputProvider inputProvider = new ConsoleInputProvider(new Reader()); IPlayer player = new Player(); IWordProvider wordProvider = new WordProvider(); IWordGenerator randomWordGenerator = new WordGenerator(wordProvider); ICommandFactory commandFactory = new CommandFactory(); IEngine gameEngine = new ConsoleEngine(scoreBoardService, renderer, player, randomWordGenerator, commandFactory, inputProvider); this.Engine = gameEngine; }
public void ConsoleInputProviderTest() { var consoleInputProvider = new ConsoleInputProvider(); Assert.IsInstanceOf(typeof(ConsoleInputProvider), consoleInputProvider); }