public async Task GetMythicKeystoneDungeonsIndexAsync_Gets_MythicKeystoneDungeonsIndex() { IMythicKeystoneDungeonApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneDungeonsIndex> result = await warcraftClient.GetMythicKeystoneDungeonsIndexAsync("dynamic-us"); Assert.NotNull(result.Value); }
public async Task GetMythicKeystoneDungeonsIndexAsync_Gets_MythicKeystoneDungeonsIndex() { IMythicKeystoneDungeonApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneDungeonsIndex> result = await warcraftClient.GetMythicKeystoneDungeonsIndexAsync("dynamic-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/mythic-keystone/dungeon/index?namespace=dynamic-us&locale=en_US"); }
public async Task GetMythicKeystoneDungeonsIndexAsync_Gets_MythicKeystoneDungeonsIndex() { IMythicKeystoneDungeonApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/mythic-keystone/dungeon/index?namespace=dynamic-us&locale=en_US", responseContent: Resources.MythicKeystoneDungeonsIndexResponse); RequestResult <MythicKeystoneDungeonsIndex> result = await warcraftClient.GetMythicKeystoneDungeonsIndexAsync("dynamic-us"); Assert.NotNull(result.Value); }