public void TaskList_Index_Returns_ViewResult() { //Arrange TaskListsController controller = new TaskListsController(); //Act ViewResult result = controller.Index() as ViewResult; //Assert Assert.IsNotNull(result); }
public void TaskList_Index_Returns_ViewResult() { //Arrange TaskListsController controller = new TaskListsController(); //Act var actual = controller.Index(); //Assert Assert.IsInstanceOf <ViewResult>(actual); }
public TaskListsControllerTests() { _mockTaskListsRepo = new Mock <ITaskListsRepo>(); _mockTagsRepo = new Mock <ITagsRepo>(); _mockTaskTagsRepo = new Mock <ITaskTagsRepo>(); _mapper = Mapper.Configuration.CreateMapper(); _mockLogger = new Mock <ILogger <TaskListsController> >(); _controller = new TaskListsController(_mockTaskListsRepo.Object, _mockTagsRepo.Object, _mockTaskTagsRepo.Object, _mapper, _mockLogger.Object); }