Пример #1
0
        public async Task TestGetAccountImages()
        {
            var imgurClient = await AuthenticationHelpers.CreateOAuth2AuthenticatedImgurClient();

            var accountEndpoint = new AccountEndpoint(imgurClient);
            var accountImages   = await accountEndpoint.GetAccountImagesAsync(0);

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