Esempio n. 1
0
        public async Task GetAzeriteEssenceAsync_Gets_AzeriteEssence()
        {
            IAzeriteEssenceApi             warcraftClient = ClientFactory.BuildClient();
            RequestResult <AzeriteEssence> result         = await warcraftClient.GetAzeriteEssenceAsync(2, "static-us");

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

        RequestResult <AzeriteEssence> result = await warcraftClient.GetAzeriteEssenceAsync(2, "static-us");

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

            RequestResult <AzeriteEssence> result = await warcraftClient.GetAzeriteEssenceAsync(2, "static-us");

            Assert.NotNull(result.Value);
        }