public async Task GetMythicKeystoneDungeonsIndexAsync_Gets_MythicKeystoneDungeonsIndex()
        {
            IMythicKeystoneDungeonApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <MythicKeystoneDungeonsIndex> result = await warcraftClient.GetMythicKeystoneDungeonsIndexAsync("dynamic-us");

            Assert.NotNull(result.Value);
        }
Beispiel #2
0
    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");
    }
Beispiel #3
0
    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);
    }