public async Task GetItemSetAsync_Gets_ItemSet() { IItemApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ItemSet> result = await warcraftClient.GetItemSetAsync(1, "static-us"); Assert.NotNull(result.Value); }
public async Task GetItemSetAsync_Gets_ItemSet() { IItemApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ItemSet> result = await warcraftClient.GetItemSetAsync(1, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/item-set/1?namespace=static-us&locale=en_US"); }
public async Task GetItemSetAsync_Gets_ItemSet() { IItemApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/item-set/1?namespace=static-us&locale=en_US", responseContent: Resources.ItemSetResponse); RequestResult <ItemSet> result = await warcraftClient.GetItemSetAsync(1, "static-us"); Assert.NotNull(result.Value); }