Пример #1
0
 public void GetUbicacionRegionesTest()
 {
     BusinessLogic target = new BusinessLogic(); // TODO: Initialize to an appropriate value
     List<Ubicacion> expected = null; // TODO: Initialize to an appropriate value
     List<Ubicacion> actual;
     actual = target.GetUbicacionRegiones();
     Assert.AreNotEqual(expected, actual);
 }
 private void CargarRegiones(bool loadFromSession)
 {
     List<Ubicacion> regiones = null;
     if (loadFromSession)
     {
         regiones = Session["regiones"] as List<Ubicacion>;
     }
     else
     {
         IUbicacion bdd = new BusinessLogic();
         regiones = bdd.GetUbicacionRegiones();
         Session.Add("regiones", regiones);
     }
     gridRegiones.DataSource = regiones;
     gridRegiones.DataBind();
 }