コード例 #1
0
        public async Task GetReputationFactionsIndexAsync_Gets_ReputationFactionsIndex()
        {
            IReputationsApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <ReputationFactionsIndex> result = await warcraftClient.GetReputationFactionsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
コード例 #2
0
    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");
    }
コード例 #3
0
    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);
    }