Exemplo 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);
        }
Exemplo 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");
    }
Exemplo 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);
    }