Beispiel #1
0
        public async Task GetAzeriteEssencesIndexAsync_Gets_AzeriteEssencesIndex()
        {
            IAzeriteEssenceApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <AzeriteEssencesIndex> result = await warcraftClient.GetAzeriteEssencesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Beispiel #2
0
    public async Task GetAzeriteEssencesIndexAsync_Gets_AzeriteEssencesIndex()
    {
        IAzeriteEssenceApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <AzeriteEssencesIndex> result = await warcraftClient.GetAzeriteEssencesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/azerite-essence/index?namespace=static-us&locale=en_US");
    }
        public async Task GetAzeriteEssencesIndexAsync_Gets_AzeriteEssencesIndex()
        {
            IAzeriteEssenceApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/azerite-essence/index?namespace=static-us&locale=en_US",
                responseContent: Resources.AzeriteEssencesIndexResponse);

            RequestResult <AzeriteEssencesIndex> result = await warcraftClient.GetAzeriteEssencesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }