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

            Assert.NotNull(result.Value);
        }
Ejemplo n.º 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");
    }
Ejemplo n.º 3
0
        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);
        }