// Test update task functionality
        public void ShouldUpdateTask()
        {
            var taskId     = 3;
            var taskDetail = new TaskEntity
            {
                TaskId       = taskId,
                Task         = "Update Repository Creation", //"Repository Creation",
                ParentId     = 2,                            //1
                TaskPriority = 3,                            //2
                TaskStatus   = "Y",
                StartDate    = new DateTime(2018, 9, 10),    //DateTime(2018, 9, 9),
                EndDate      = new DateTime(2018, 10, 9)     //DateTime(2018, 9, 9)
            };

            _mockRepository.UpdateTask(taskDetail);

            var UpdatedTask = _mockRepository.GetTask(taskId);

            Assert.IsTrue(UpdatedTask.Task == "Update Repository Creation");
            Assert.IsTrue(UpdatedTask.ParentId == 2);
            Assert.IsTrue(UpdatedTask.TaskPriority == 3);
            Assert.IsTrue(UpdatedTask.StartDate == new DateTime(2018, 9, 10));
            Assert.IsTrue(UpdatedTask.EndDate == new DateTime(2018, 10, 9));
        }
 public void UpdateTask(TaskEntity task)
 {
     _projDL.UpdateTask(task);
 }