예제 #1
0
        public async Task GetAccountProfileSummaryAsync_Gets_AccountProfileSummary()
        {
            IAccountProfileApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/profile/user/wow?namespace=profile-us&locale=en_US",
                responseContent: Resources.AccountProfileSummaryResponse);

            RequestResult <AccountProfileSummary> result = await warcraftClient.GetAccountProfileSummaryAsync("ACCESS-TOKEN-GOES-HERE", "profile-us");

            Assert.NotNull(result.Value);
        }
        public async void GetProtectedCharacterProfileSummaryAsync_Gets_ProtectedCharacterProfileSummary()
        {
            IAccountProfileApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/profile/user/wow/protected-character/1262-107811065?namespace=profile-us&locale=en_US",
                responseContent: Resources.ProtectedCharacterProfileSummaryResponse);

            RequestResult <ProtectedCharacterProfileSummary> result = await warcraftClient.GetProtectedCharacterProfileSummaryAsync(1262, 107811065, "ACCESS-TOKEN-GOES-HERE", "profile-us");

            Assert.NotNull(result.Value);
        }