public void TestObtenerUbicacion() { UbicacionServiceClient proxy = new UbicacionServiceClient(); Ubicacion ubi = new Ubicacion(); ubi = proxy.listaUbicacion("em124"); Assert.AreEqual(ubi.latitud, -12.1017361); Assert.AreEqual(ubi.longitud, -77.0001988); }
public void TestRegistrarUbicacion() { UbicacionServiceClient proxy = new UbicacionServiceClient(); Ubicacion ubi = new Ubicacion(); ubi.idEnvio = "EM126"; ubi.latitud = -12.1017361; ubi.longitud = -77.0001988; string user = proxy.actualizaUbicacion(ubi); Assert.AreEqual("EM126", user); }
protected void btnBUscar_Click(object sender, EventArgs e) { UbicacionServiceClient proxy = new UbicacionServiceClient(); Ubicacion ubi = new Ubicacion(); try { GMap1.reset(); ubi = proxy.listaUbicacion(TextBox1.Text); GLatLng milocacion = new GLatLng(ubi.latitud, ubi.longitud); GMap1.setCenter(milocacion, 14); XPinLetter Xpin = new XPinLetter(PinShapes.pin_star, "H", Color.Blue, Color.White, Color.Chocolate); GMap1.Add(new GMarker(milocacion, new GMarkerOptions(new GIcon(Xpin.ToString(), Xpin.Shadow())))); } catch (Exception ex) { Label2.Text = ex.Message; } }
public void TestRegistrarUbicacion() { UbicacionServiceClient proxy = new UbicacionServiceClient(); Ubicacion ubi = new Ubicacion(); ubi.idEnvio = "EM126"; ubi.latitud = -12.1017361; ubi.longitud= -77.0001988; string user = proxy.actualizaUbicacion(ubi); Assert.AreEqual("EM126",user); }