public async Task GetPetAbilitiesIndexAsync_Gets_PetAbilitiesIndex() { IPetApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PetAbilitiesIndex> result = await warcraftClient.GetPetAbilitiesIndexAsync("static-us"); Assert.NotNull(result.Value); }
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"); }
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); }