public async Task GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex() { IPlayableSpecializationApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex() { IPlayableSpecializationApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/playable-specialization/index?namespace=static-us&locale=en_US"); }
public async void GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex() { IPlayableSpecializationApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/playable-specialization/index?namespace=static-us&locale=en_US", responseContent: Resources.PlayableSpecializationsIndexResponse); RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us"); Assert.NotNull(result.Value); }