public async Task GetRegionsIndexAsync_Gets_RegionsIndex() { IRegionApi warcraftClient = ClientFactory.BuildClient(); RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us"); Assert.NotNull(result.Value); }
public async Task GetRegionsIndexAsync_Gets_RegionsIndex() { IRegionApi warcraftClient = ClientFactory.BuildClient(); RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/region/index?namespace=dynamic-us&locale=en_US"); }
public async Task GetRegionsIndexAsync_Gets_RegionsIndex() { IRegionApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/region/index?namespace=dynamic-us&locale=en_US", responseContent: Resources.RegionsIndexResponse); RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us"); Assert.NotNull(result.Value); }