public void CompleteTaskForValidProjectMarksProjectCompleteAndCallsEdit()
        {
            List <User> users = new List <User>();
            User        user  = new User()
            {
                Id       = 1,
                IsActive = true,
                UserName = "******"
            };

            users.Add(user);
            var project = new BasicProject()
            {
                Id             = validProjectId,
                ProjectManager = user
            };

            userRepository.Setup(u => u.All).Returns(users.AsQueryable());
            projectRepository.Setup(p => p.Find(validProjectId)).Returns(project);
            controller.CompleteProject(validProjectId);

            projectService.Verify(ps => ps.Edit(It.Is <Project>(p => p.CompletedDetails != null)));
        }