public void Update_ProjectIdAndCapitalPlanDTO_CallRepositoryToUpdateContent()
        {
            //Arrange
            var id = new Guid("2509d0dc-fa61-48a5-8650-684592539742");

            var capitalPlanDTO = new ProjectInformationDTO
            {
                ProjectId = id
            };

            //Act
            _service.Update(id, capitalPlanDTO);

            //Assert
            _repository.Received(1).Update(id, Arg.Is <ProjectInformation>(c => c.ProjectId == id));
        }
        public async Task <IActionResult> Put(Guid id, [FromBody] ProjectInformationDTO projectInformationDTO)
        {
            if (projectInformationDTO == null)
            {
                return(BadRequest("Could not convert the content of the Body to a Project Information."));
            }

            _projectInformationService.Update(id, projectInformationDTO);

            var response = await _unitOfWork.SaveChangesAsync();

            if (response == 0)
            {
                return(NotFound());
            }

            return(NoContent());
        }