Пример #1
0
    public async Task GetCharacterMediaSummaryAsync_Gets_CharacterMediaSummary()
    {
        ICharacterMediaApi warcraftClient            = ClientFactory.BuildClient();
        RequestResult <CharacterMediaSummary> result = await warcraftClient.GetCharacterMediaSummaryAsync("norgannon", "drinian", "profile-us");

        Assert.NotNull(result.Value);
    }
    public async Task GetCharacterMediaSummaryAsync_Gets_CharacterMediaSummary()
    {
        ICharacterMediaApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/profile/wow/character/norgannon/drinian/character-media?namespace=profile-us&locale=en_US",
            responseContent: Resources.CharacterMediaSummaryResponse);

        RequestResult <CharacterMediaSummary> result = await warcraftClient.GetCharacterMediaSummaryAsync("norgannon", "drinian", "profile-us");

        Assert.NotNull(result.Value);
    }