public void FillBuscar() { ListSectorsViewModel objViewModel = new ListSectorsViewModel(); objViewModel.Filtro = "999"; objViewModel.fill(); Assert.AreEqual(0, objViewModel.ListSector.Count); }
public void FillBuscarFlujoAlternativo() { ListSectorsViewModel objViewModel = new ListSectorsViewModel(); objViewModel.Filtro = "assa7fs89a7f"; objViewModel.fill(); Assert.AreEqual(0, objViewModel.ListSector.Count); }
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); }
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")); }
public void Fill() { ListSectorsViewModel objViewModel = new ListSectorsViewModel(); Assert.AreNotEqual(0, objViewModel.ListSector.Count); }
public ActionResult ListSectors(ListSectorsViewModel objViewModel) { objViewModel.fill(); return(View(objViewModel)); }
public ActionResult ListSectors() { ListSectorsViewModel objViewModel = new ListSectorsViewModel(); return(View(objViewModel)); }