public void FindByTestGetAll() { var svc = new ProjectAppSvcGeneric(); var result = svc.FindBy(null); Assert.IsNotNull(result); Assert.IsTrue(result.Count() > 0); }
public ActionResult List() { var service = new ProjectAppSvcGeneric(); var listProject = service.FindBy(null); ViewBag.listProject = listProject; return(View()); }
public void FindByTestGetByName() { var svc = new ProjectAppSvcGeneric(); var result = svc.FindBy(new Project { ProjectName = "fusca" }); Assert.IsNotNull(result); Assert.IsTrue(result.Count() > 0); }