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

            var accountEndpoint   = new AccountEndpoint(imgurClient);
            var accountImageCount = await accountEndpoint.GetAccountImageIdsAsync();

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