public void GetAllCustomer() { var da = new CustomerDA(); var lista = da.GetAll("Pedro Ruiz"); Assert.IsTrue(lista.Count > 0); }
public ActionResult GetAll(string key) { var obj = key != Keyapi ? new List <CustomerItem>() : _da.GetAll(); return(Json(obj, JsonRequestBehavior.AllowGet)); }