Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        public IHttpActionResult GetProjectList()
        {
            ProjectManagerBL obj = new ProjectManagerBL(_db);

            return(Ok(obj.GetProjectList()));
        }