Example #1
0
        public async Task GetPvpTierAsync_Gets_PvpTier()
        {
            IPvpTierApi             warcraftClient = ClientFactory.BuildClient();
            RequestResult <PvpTier> result         = await warcraftClient.GetPvpTierAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
Example #2
0
    public async Task GetPvpTierAsync_Gets_PvpTier()
    {
        IPvpTierApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PvpTier> result = await warcraftClient.GetPvpTierAsync(1, "static-us");

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

        RequestResult <PvpTier> result = await warcraftClient.GetPvpTierAsync(1, "static-us");

        Assert.NotNull(result.Value);
    }