Esempio n. 1
0
        public async Task GetPvpTiersIndexAsync_Gets_PvpTiersIndex()
        {
            IPvpTierApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <PvpTiersIndex> result = await warcraftClient.GetPvpTiersIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Esempio n. 2
0
    public async Task GetPvpTiersIndexAsync_Gets_PvpTiersIndex()
    {
        IPvpTierApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PvpTiersIndex> result = await warcraftClient.GetPvpTiersIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pvp-tier/index?namespace=static-us&locale=en_US");
    }
Esempio n. 3
0
    public async Task GetPvpTiersIndexAsync_Gets_PvpTiersIndex()
    {
        IPvpTierApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/pvp-tier/index?namespace=static-us&locale=en_US",
            responseContent: Resources.PvpTiersIndexResponse);

        RequestResult <PvpTiersIndex> result = await warcraftClient.GetPvpTiersIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }