public async Task GetPowerTypesIndexAsync_Gets_PowerTypesIndex()
        {
            IPowerTypeApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <PowerTypesIndex> result = await warcraftClient.GetPowerTypesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Exemple #2
0
    public async Task GetPowerTypesIndexAsync_Gets_PowerTypesIndex()
    {
        IPowerTypeApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PowerTypesIndex> result = await warcraftClient.GetPowerTypesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/power-type/index?namespace=static-us&locale=en_US");
    }
        public async void GetPowerTypesIndexAsync_Gets_PowerTypesIndex()
        {
            IPowerTypeApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/power-type/index?namespace=static-us&locale=en_US",
                responseContent: Resources.PowerTypesIndexResponse);

            RequestResult <PowerTypesIndex> result = await warcraftClient.GetPowerTypesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }