public ListUsersQuestions() { _mock = new Mock<IQuestions>(); _userController = new UserController {Questions = _mock.Object}; }
public void GivenTheUserVintemHasNoAnsweredQuestions(string username) { _mock.Setup(q => q.AllAnsweredByUser(username)).Returns(new List<Question>()); _userController = new UserController {Questions = _mock.Object}; }
public void Setup() { _controller = new UserController(); _questionRepository = new Mock<IQuestions>(); _controller.Questions = _questionRepository.Object; }