Esempio n. 1
0
        public void FindByTestGetAll()
        {
            var svc    = new ProjectAppSvcGeneric();
            var result = svc.FindBy(null);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Count() > 0);
        }
Esempio n. 2
0
        public ActionResult List()
        {
            var service     = new ProjectAppSvcGeneric();
            var listProject = service.FindBy(null);

            ViewBag.listProject = listProject;


            return(View());
        }
Esempio n. 3
0
        public void FindByTestGetByName()
        {
            var svc    = new ProjectAppSvcGeneric();
            var result = svc.FindBy(new Project {
                ProjectName = "fusca"
            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Count() > 0);
        }