public void TestFor_EndTaskByManager()
        {
            //Action
            var IsEnded = _ManagerService.EndTask(tasks);

            //Action
            Assert.True(IsEnded);
        }
        public void BoundaryTestFor_ViewBeforeEnd()
        {
            //Arrange

            User user = new User()
            {
                Id       = 11,
                Name     = "John",
                email    = "*****@*****.**",
                Password = "******"
            };

            var task     = _ManagerService.EndTask(tasks);
            var ViewTask = _ManagerService.ViewTask();

            //Assert
            Assert.NotEmpty(ViewTask);
        }
Пример #3
0
        public void EndTaskTest()
        {
            //Arrange
            Tasks task = new Tasks()
            {
                TaskId       = 1,
                ParentTaskId = 2,
                TaskName     = "MvcCrud",
                StartDate    = new DateTime(2020, 02, 18),
                EndDate      = new DateTime(2020, 02, 20),
                Priority     = 20
            };

            //Action

            var IsEnded = projectManager.EndTask(task);

            //Action
            Assert.AreEqual(true, IsEnded);
        }