예제 #1
0
        public async Task TestGetAccountAlbumCount()
        {
            var imgurClient = await AuthenticationHelpers.CreateOAuth2AuthenticatedImgurClient();

            var accountEndpoint   = new AccountEndpoint(imgurClient);
            var accountAlbumCount = await accountEndpoint.GetAccountAlbumCountAsync();

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