public void BenchmarkAddUpdateProject() { Project project = new Project(); project.ProjectName = "PerProjectName"; project.Priority = 12; project.StartDate = DateTime.Now; project.EndDate = DateTime.Now; project.UserID = 3; obj.AddProject(project); obj.UpdateProject(project); }
public void TestAddProject() { Project item = new Project(); item.ProjectName = "ProjectManager App Test Project"; item.StartDate = DateTime.Now; item.EndDate = DateTime.Now.AddDays(2); item.Priority = 12; item.UserID = userId; var list = businessObj.AddProject(item); var projectDetail = list.FirstOrDefault(x => x.ProjectName.ToLower() == item.ProjectName.ToLower()); projectId = projectDetail.ProjectID; Assert.AreNotEqual(projectId, 0); // Assert.AreEqual(item.Priority, projectDetail.Priority); }
public List <Project> AddProject(Project item) { return(businessObj.AddProject(item)); }