public async Task TimeEstimates() { var client = new UberClient(_serverKey); var results = await client.TimeEstimateAsync(latitude, longitude); Assert.IsNotNull(results); }
public async Task TimeEstimates_Product() { var client = new UberClient(_serverKey); var productResults = await client.ProductsAsync(latitude, longitude); var product = productResults.products.FirstOrDefault(); if (product != null) { var results = await client.TimeEstimateAsync(latitude, longitude, productId : product.product_id); Assert.IsNotNull(results); } }
public async Task TimeEstimates_Product() { var client = new UberClient(_serverKey); var productResults = await client.ProductsAsync(latitude, longitude); var product = productResults.products.FirstOrDefault(); if (product != null) { var results = await client.TimeEstimateAsync(latitude, longitude, productId: product.product_id); Assert.IsNotNull(results); } }