示例#1
0
        public async Task TimeEstimates()
        {
            var client  = new UberClient(_serverKey);
            var results = await client.TimeEstimateAsync(latitude, longitude);

            Assert.IsNotNull(results);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
 public async Task TimeEstimates()
 {
     var client = new UberClient(_serverKey);
     var results = await client.TimeEstimateAsync(latitude, longitude);
     Assert.IsNotNull(results);
 }