public void TestFor_UpdatingTaskByManager()
        {
            //Action
            var updatedtask    = _ManagerService.UpdateTask(tasks.TaskId);
            var gotUpadtedTask = _ManagerService.GetTaskById(tasks.TaskId);

            //Assert
            Assert.Equal(gotUpadtedTask, updatedtask);
        }
Example #2
0
        public void Test_For_UpdatingTaskTest()
        {
            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 updatedtask    = projectManager.UpdateTask(task.TaskId);
            var gotUpadtedTask = projectManager.GetTaskById(task.TaskId);

            //Assert
            Assert.AreEqual(gotUpadtedTask, updatedtask);
        }