public async Task GetTitleAsync_Gets_Title() { ITitleApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Title> result = await warcraftClient.GetTitleAsync(1, "static-us"); Assert.NotNull(result.Value); }
public async Task GetTitleAsync_Gets_Title() { ITitleApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/title/1?namespace=static-us&locale=en_US", responseContent: Resources.TitleResponse); RequestResult <Title> result = await warcraftClient.GetTitleAsync(1, "static-us"); Assert.NotNull(result.Value); }