Example #1
0
        public void FillBuscarFlujoAlternativo()
        {
            ListBusinessViewModel objViewModel = new ListBusinessViewModel();

            objViewModel.Filtro = "assa7fs89a7f";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListBusiness.Count);
        }
Example #2
0
        public void FillBuscar()
        {
            ListBusinessViewModel objViewModel = new ListBusinessViewModel();

            objViewModel.Filtro = "999";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListBusiness.Count);
        }
Example #3
0
        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);
        }
Example #4
0
 public ActionResult ListBusiness(ListBusinessViewModel objViewModel)
 {
     objViewModel.fill();
     return(View(objViewModel));
 }