Exemple #1
0
        public async Task CanGetProduct()
        {
            Webstore.Models.Product product = null;
            product = await ServiceClient.GetAsync <Webstore.Models.Product>(gatewayUrl + "api/webstore/products/1");

            Assert.True(product != null);
        }
Exemple #2
0
 public async Task CanGetProduct()
 {
     Webstore.Models.Product product = null;
     using (HttpClient client = _gatewayServer.CreateClient())
     {
         product = await ServiceClient.GetAsync <Webstore.Models.Product>(client, "api/webstore/products/1");
     }
     Assert.True(product != null);
 }