Пример #1
0
        public void Task_GetTasks_Return_OkResult()
        {
            //Arrange
            var controller = new AssigneeController(aService);

            //Act
            var data = controller.Get();

            //Assert
            Assert.IsType <OkObjectResult>(data);
        }
Пример #2
0
        public void Task_FindTaskById_Return_OkResult()
        {
            //Arrange
            var controller = new AssigneeController(aService);
            var assigneeId = 2;

            //Act
            var data = controller.Get(assigneeId);

            //Assert
            Assert.IsType <OkObjectResult>(data);
        }