Ejemplo n.º 1
0
 public void GetUbicacionCiudadesTest()
 {
     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.GetUbicacionCiudades();
     Assert.AreNotEqual(expected, actual);
 }
Ejemplo n.º 2
0
 private void CargarCiudades(bool loadFromSession)
 {
     List<Ubicacion> ciudades = null;
     if (loadFromSession)
     {
         ciudades = Session["ciudades"] as List<Ubicacion>;
     }
     else
     {
         IUbicacion bdd = new BusinessLogic();
         ciudades = bdd.GetUbicacionCiudades();
         Session.Add("ciudades", ciudades);
     }
     gridCiudades.DataSource = ciudades;
     gridCiudades.DataBind();
 }