public async Task GetProfessionsIndexAsync_Gets_ProfessionsIndex() { IProfessionApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ProfessionsIndex> result = await warcraftClient.GetProfessionsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetProfessionsIndexAsync_Gets_ProfessionsIndex() { IProfessionApi warcraftClient = ClientFactory.BuildClient(); RequestResult <ProfessionsIndex> result = await warcraftClient.GetProfessionsIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/profession/index?namespace=static-us&locale=en_US"); }
public async Task GetProfessionsIndexAsync_Gets_ProfessionsIndex() { IProfessionApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/profession/index?namespace=static-us&locale=en_US", responseContent: Resources.ProfessionsIndexResponse); RequestResult <ProfessionsIndex> result = await warcraftClient.GetProfessionsIndexAsync("static-us"); Assert.NotNull(result.Value); }