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