public void DeleteTaskTest() { ProjectManagerBL tb = new ProjectManagerBL(dbContext.Object); string result = tb.DeleteTask(3); Assert.AreEqual(result, "Task Deleted Successfully"); }
public IHttpActionResult DeleteTask(int id) { ProjectManagerBL obj = new ProjectManagerBL(_db); return(Ok(obj.DeleteTask(id))); }