public async Task GetAchievementCategoriesIndexAsync_Gets_AchievementCategoriesIndex() { IAchievementApi warcraftClient = ClientFactory.BuildClient(); RequestResult <AchievementCategoriesIndex> result = await warcraftClient.GetAchievementCategoriesIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetAchievementMediaAsync_Gets_AchievementMedia() { IAchievementApi warcraftClient = ClientFactory.BuildClient(); RequestResult <AchievementMedia> result = await warcraftClient.GetAchievementMediaAsync(6, "static-us"); Assert.NotNull(result.Value); }
public async Task GetAchievementCategoriesIndexAsync_Gets_AchievementCategoriesIndex() { IAchievementApi warcraftClient = ClientFactory.BuildClient(); RequestResult <AchievementCategoriesIndex> result = await warcraftClient.GetAchievementCategoriesIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/achievement-category/index?namespace=static-us&locale=en_US"); }
public async Task GetAchievementCategoriesIndexAsync_Gets_AchievementCategoriesIndex() { IAchievementApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/achievement-category/index?namespace=static-us&locale=en_US", responseContent: Resources.AchievementCategoriesIndexResponse); RequestResult <AchievementCategoriesIndex> result = await warcraftClient.GetAchievementCategoriesIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetAchievementMediaAsync_Gets_AchievementMedia() { IAchievementApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/media/achievement/6?namespace=static-us&locale=en_US", responseContent: Resources.AchievementMediaResponse); RequestResult <AchievementMedia> result = await warcraftClient.GetAchievementMediaAsync(6, "static-us"); Assert.NotNull(result.Value); }