Beispiel #1
0
    public async Task GetCharacterStatisticsSummaryAsync_Gets_CharacterStatisticsSummary()
    {
        ICharacterStatisticsApi warcraftClient            = ClientFactory.BuildClient();
        RequestResult <CharacterStatisticsSummary> result = await warcraftClient.GetCharacterStatisticsSummaryAsync("norgannon", "drinian", "profile-us");

        Assert.NotNull(result.Value);
    }
        public async void GetCharacterStatisticsSummaryAsync_Gets_CharacterStatisticsSummary()
        {
            ICharacterStatisticsApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/profile/wow/character/norgannon/drinian/statistics?namespace=profile-us&locale=en_US",
                responseContent: Resources.CharacterStatisticsSummaryResponse);

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

            Assert.NotNull(result.Value);
        }