public async Task GetReputationFactionsIndexAsync_Gets_ReputationFactionsIndex() { IReputationsApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ReputationFactionsIndex> result = await warcraftClient.GetReputationFactionsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetReputationFactionsIndexAsync_Gets_ReputationFactionsIndex() { IReputationsApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ReputationFactionsIndex> result = await warcraftClient.GetReputationFactionsIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/reputation-faction/index?namespace=static-us&locale=en_US"); }
public async Task GetReputationFactionsIndexAsync_Gets_ReputationFactionsIndex() { IReputationsApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/reputation-faction/index?namespace=static-us&locale=en_US", responseContent: Resources.ReputationFactionsIndexResponse); RequestResult <ReputationFactionsIndex> result = await warcraftClient.GetReputationFactionsIndexAsync("static-us"); Assert.NotNull(result.Value); }