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); }
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); }