public void Start_Was_Called()
 {
     _gameView       = new Mock <GameView>();
     _taskProvider   = new Mock <TaskProvider>();
     gameServiceTest = new GameServiceImpl(_gameView.Object, _taskProvider.Object);
     _gameView.Setup(x => x.showTask(It.IsAny <Task>()));
     gameServiceTest.start();
     _gameView.VerifyAll();
 }
        public void TestStart()
        {
            var questionProvider = new Mock <IQuestionProvider>();

            var question = new Question()
            {
                question = "What colour of oranges?",
                answer   = "Oranges"
            };

            questionProvider.Setup(x => x.get()).Returns(question);

            var gameView = new Mock <IGameView>();

            var gameservice = new GameServiceImpl(questionProvider.Object, gameView.Object);

            gameservice.start();

            gameView.Verify(x => x.showQuestion(question));
            gameView.Verify(x => x.showCurrentGuess("*******"));
        }