public async Task GetPetAbilityAsync_Gets_PetAbility() { IPetApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PetAbility> result = await warcraftClient.GetPetAbilityAsync(110, "static-us"); Assert.NotNull(result.Value); }
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"); }
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); }