public void ShouldGetResponseView() { //Arrange _questionnaireServiceMock.Setup(x => x.GetQuestions()).ReturnsAsync(new QuestionnaireViewModel()); var questionnaireController = new QuestionnaireController(_questionnaireServiceMock.Object); //Act var result = questionnaireController.Response(new QuestionnaireViewModel()); //Assert Assert.That(result.ViewName, Is.EqualTo("Response")); }