public void UpdateTask()
        {
            TaskDTO taskDTO = new TaskDTO()
            {
                Task      = "Load Test Update Task",
                Priority  = 1,
                StartDate = DateTime.Now.Date,
                EndDate   = DateTime.Now.AddDays(1).Date,
                TaskId    = 1
            };
            AppBusiness appBusiness = new AppBusiness(_appRepository);

            appBusiness.UpdateTask(taskDTO, 1);
        }
        public void Update_the_task_from_repo()
        {
            // Arrange
            mock.Setup(a => a.UpdateTask(It.IsAny <Task>(), 1)).Returns(true);
            AppBusiness appBusiness = new AppBusiness(mock.Object);

            // Act
            var result = appBusiness.UpdateTask(new TaskDTO {
                TaskId = 1, Task = "TestTask", Priority = 1, StartDate = DateTime.Now.Date
            }, 1);

            // Assert
            Assert.AreEqual(true, result);
        }