示例#1
0
        public async Task TestGetAccountAlbumIds()
        {
            var imgurClient = await AuthenticationHelpers.CreateOAuth2AuthenticatedImgurClient();

            var accountEndpoint = new AccountEndpoint(imgurClient);
            var accountAlbumIds = await accountEndpoint.GetAccountAlbumIdsAsync();

            // Assert the Response
            Assert.IsNotNull(accountAlbumIds.Data);
            Assert.AreEqual(accountAlbumIds.Success, true);
            Assert.AreEqual(accountAlbumIds.Status, HttpStatusCode.OK);
        }