public async Task GetMountsIndexAsync_Gets_MountsIndex() { IMountApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetMountsIndexAsync_Gets_MountsIndex() { IMountApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/mount/index?namespace=static-us&locale=en_US"); }
public async void GetMountsIndexAsync_Gets_MountsIndex() { IMountApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/mount/index?namespace=static-us&locale=en_US", responseContent: Resources.MountsIndexResponse); RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us"); Assert.NotNull(result.Value); }