public async Task GetPvpRewardsIndexAsync_Gets_PvpRewardsIndex()
        {
            IPvpSeasonApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <PvpRewardsIndex> result = await warcraftClient.GetPvpRewardsIndexAsync(27, "dynamic-us");

            Assert.NotNull(result.Value);
        }
Exemple #2
0
        public async void GetPvpRewardsIndexAsync_Gets_PvpRewardsIndex()
        {
            IPvpSeasonApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/pvp-season/27/pvp-reward/index?namespace=dynamic-us&locale=en_US",
                responseContent: Resources.PvpRewardsIndexResponse);

            RequestResult<PvpRewardsIndex> result = await warcraftClient.GetPvpRewardsIndexAsync(27, "dynamic-us");
            Assert.NotNull(result.Value);
        }
Exemple #3
0
    public async Task GetPvpRewardsIndexAsync_Gets_PvpRewardsIndex()
    {
        IPvpSeasonApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PvpRewardsIndex> result = await warcraftClient.GetPvpRewardsIndexAsync(27, "dynamic-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pvp-season/27/pvp-reward/index?namespace=dynamic-us&locale=en_US");
    }