Esempio n. 1
0
        public void FillBuscar()
        {
            ListSectorsViewModel objViewModel = new ListSectorsViewModel();

            objViewModel.Filtro = "999";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListSector.Count);
        }
Esempio n. 2
0
        public void FillBuscarFlujoAlternativo()
        {
            ListSectorsViewModel objViewModel = new ListSectorsViewModel();

            objViewModel.Filtro = "assa7fs89a7f";
            objViewModel.fill();
            Assert.AreEqual(0, objViewModel.ListSector.Count);
        }
Esempio n. 3
0
        public void E_EliminarCurso()
        {
            ListSectorsViewModel a = new ListSectorsViewModel();

            a.fill();
            int    codigo    = a.ListSector[a.ListSector.Count - 1].idSector;
            Sector objSector = new Sector();

            objSector.idSector = codigo;
            AddEditSectorViewModel objViewModel = new AddEditSectorViewModel();

            objViewModel.EliminarSector(objSector.idSector);
            Assert.True(true);
        }
Esempio n. 4
0
        public void C_ModificarSector()
        {
            ListSectorsViewModel a = new ListSectorsViewModel();

            a.fill();
            Sector objSector = a.ListSector[a.ListSector.Count - 1];

            objSector.sectorName = "TestChange";

            AddEditSectorViewModel objViewModel = new AddEditSectorViewModel();

            objViewModel.ModificarSector(objSector);
            a.fill();
            Assert.True(a.ListSector[a.ListSector.Count - 1].sectorName.Equals("TestChange"));
        }
Esempio n. 5
0
        public void Fill()
        {
            ListSectorsViewModel objViewModel = new ListSectorsViewModel();

            Assert.AreNotEqual(0, objViewModel.ListSector.Count);
        }
Esempio n. 6
0
 public ActionResult ListSectors(ListSectorsViewModel objViewModel)
 {
     objViewModel.fill();
     return(View(objViewModel));
 }
Esempio n. 7
0
        public ActionResult ListSectors()
        {
            ListSectorsViewModel objViewModel = new ListSectorsViewModel();

            return(View(objViewModel));
        }