public void FillBuscarFlujoAlternativo() { ListBusinessViewModel objViewModel = new ListBusinessViewModel(); objViewModel.Filtro = "assa7fs89a7f"; objViewModel.fill(); Assert.AreEqual(0, objViewModel.ListBusiness.Count); }
public void FillBuscar() { ListBusinessViewModel objViewModel = new ListBusinessViewModel(); objViewModel.Filtro = "999"; objViewModel.fill(); Assert.AreEqual(0, objViewModel.ListBusiness.Count); }
public void E_EliminarBusiness() { ListBusinessViewModel a = new ListBusinessViewModel(); a.fill(); int codigo = a.ListBusiness[a.ListBusiness.Count - 1].idBusiness; Business objBusiness = new Business(); objBusiness.idBusiness = codigo; AddEditBusinessViewModel objViewModel = new AddEditBusinessViewModel(); objViewModel.EliminarBusiness(objBusiness.idBusiness); Assert.True(true); }
public ActionResult ListBusiness(ListBusinessViewModel objViewModel) { objViewModel.fill(); return(View(objViewModel)); }