//Test to update the project public void ShouldUpdateProject() { var projectId = 2; var projectDetail = new ProjectEntity { ProjectId = projectId, ProjectName = "Updated Project Prototype", StartDate = new DateTime(2018, 11, 25), ProjectPriority = 5, ManagerId = 3 }; _mockRepository.UpdateProject(projectDetail); var updatedProject = _mockRepository.GetProject(projectId); Assert.IsTrue(projectDetail.ProjectName == updatedProject.ProjectName); Assert.IsTrue(projectDetail.ManagerId == updatedProject.ManagerId); Assert.IsTrue(projectDetail.ProjectPriority == updatedProject.ProjectPriority); Assert.IsTrue(projectDetail.StartDate == updatedProject.StartDate); }
public void UpdateProject(ProjectEntity project) { _projDL.UpdateProject(project); }