Exemplo n.º 1
0
        public void FillBuscar()
        {
            ListEventsViewModel objViewModel = new ListEventsViewModel();

            objViewModel.Filtro = "999";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListEvents.Count);
        }
Exemplo n.º 2
0
        public void FillBuscarFlujoAlternativo()
        {
            ListEventsViewModel objViewModel = new ListEventsViewModel();

            objViewModel.Filtro = "assa7fs89a7f";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListEvents.Count);
        }
Exemplo n.º 3
0
        public void E_EliminarEvent()
        {
            ListEventsViewModel a = new ListEventsViewModel();

            a.fill();
            int   codigo    = a.ListEvents[a.ListEvents.Count - 1].idEvent;
            Event objSector = new Event();

            objSector.idEvent = codigo;
            AddEditEventViewModel objViewModel = new AddEditEventViewModel();

            objViewModel.EliminarEvent(objSector.idEvent);
            Assert.True(true);
        }
Exemplo n.º 4
0
 public ActionResult ListEvents(ListEventsViewModel objViewModel)
 {
     objViewModel.fill();
     return(View(objViewModel));
 }