Beispiel #1
0
        public async Task GetPetAbilitiesIndexAsync_Gets_PetAbilitiesIndex()
        {
            IPetApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <PetAbilitiesIndex> result = await warcraftClient.GetPetAbilitiesIndexAsync("static-us");

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

        RequestResult <PetAbilitiesIndex> result = await warcraftClient.GetPetAbilitiesIndexAsync("static-us");

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

            RequestResult <PetAbilitiesIndex> result = await warcraftClient.GetPetAbilitiesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }