示例#1
0
        public async Task GetCharacterSpecializationsSummaryAsync_Gets_CharacterSpecializationsSummary()
        {
            ICharacterSpecializationsApi warcraftClient            = ClientFactory.BuildClient();
            RequestResult <CharacterSpecializationsSummary> result = await warcraftClient.GetCharacterSpecializationsSummaryAsync("norgannon", "drinian", "profile-us");

            Assert.NotNull(result.Value);
        }
示例#2
0
    public async Task GetCharacterSpecializationsSummaryAsync_Gets_CharacterSpecializationsSummary()
    {
        ICharacterSpecializationsApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/profile/wow/character/norgannon/drinian/specializations?namespace=profile-us&locale=en_US",
            responseContent: Resources.CharacterSpecializationsSummaryResponse);

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

        Assert.NotNull(result.Value);
    }