Beispiel #1
0
        public async Task GetPetAbilityAsync_Gets_PetAbility()
        {
            IPetApi warcraftClient            = ClientFactory.BuildClient();
            RequestResult <PetAbility> result = await warcraftClient.GetPetAbilityAsync(110, "static-us");

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

        RequestResult <PetAbility> result = await warcraftClient.GetPetAbilityAsync(110, "static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pet-ability/110?namespace=static-us&locale=en_US");
    }
Beispiel #3
0
        public async void GetPetAbilityAsync_Gets_PetAbility()
        {
            IPetApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/pet-ability/110?namespace=static-us&locale=en_US",
                responseContent: Resources.PetAbilityResponse);

            RequestResult <PetAbility> result = await warcraftClient.GetPetAbilityAsync(110, "static-us");

            Assert.NotNull(result.Value);
        }