public void GetProjectListTest() { ProjectManagerBL tb = new ProjectManagerBL(dbContext.Object); List <ProjectList> result = tb.GetProjectList(); Assert.AreEqual(result.Count, 2); Assert.AreEqual(result[0].ProjectId, 1); Assert.AreEqual(result[0].ProjectName, "QA & E"); }
public IHttpActionResult GetProjectList() { ProjectManagerBL obj = new ProjectManagerBL(_db); return(Ok(obj.GetProjectList())); }