public void DeleteProject() { var request = new Model.PROJECT_DETAILS() { Project_ID = 1002 }; var vlsit = projectController.Put(request); }
public void EndProjectUnitTest() { ProjectController ProjectController = new ProjectController(); var request = new Model.PROJECT_DETAILS() { Project_ID = 1002 }; var response = ProjectController.Put(request); Assert.NotNull(response, "API failed-Internal Error"); Assert.AreEqual(HttpStatusCode.OK.ToString().ToLower(), response.StatusCode.ToString().ToLower(), "API failed-Status error"); }
public void AddprojectDetails() { UserController UserController = new UserController(); var addRequest = new Model.PROJECT_DETAILS() { Project = "Project" + new Random().ToString(), Start_Date = DateTime.Now.AddDays(6), End_Date = DateTime.Now.AddDays(10), Priority = 30 }; var vlsit = projectController.Post(addRequest); }
public void UpdateProjectDetails() { UserController UserController = new UserController(); var addRequest = new Model.PROJECT_DETAILS() { Project_ID = 1, Project = "Project", Start_Date = DateTime.Now.AddDays(6), End_Date = DateTime.Now.AddDays(10), Priority = 30 }; var vlsit = projectController.Post(addRequest); }
public void AddProjectUnitTest() { ProjectController ProjectController = new ProjectController(); var addRequest = new Model.PROJECT_DETAILS() { Project = "Project", Start_Date = DateTime.Now.AddDays(6), End_Date = DateTime.Now.AddDays(10), Priority = 30 }; var response = ProjectController.Post(addRequest); Assert.NotNull(response, "API failed-Internal Error"); Assert.AreEqual(HttpStatusCode.OK.ToString().ToLower(), response.StatusCode.ToString().ToLower(), "API failed-Status error"); }