Exemplo n.º 1
0
        public void TaskList_Index_Returns_ViewResult()
        {
            //Arrange
            TaskListsController controller = new TaskListsController();

            //Act
            ViewResult result = controller.Index() as ViewResult;

            //Assert
            Assert.IsNotNull(result);
        }
Exemplo n.º 2
0
        public void TaskList_Index_Returns_ViewResult()
        {
            //Arrange
            TaskListsController controller = new TaskListsController();

            //Act
            var actual = controller.Index();

            //Assert
            Assert.IsInstanceOf <ViewResult>(actual);
        }
Exemplo n.º 3
0
 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);
 }