Exemplo n.º 1
0
        public async Task TestInvalidOAuth()
        {
            var config = new InstagramDataConfig
            {
                QueryType = InstagramQueryType.Tag,
                Query = "windowsappstudio"
            };

            var tokens = new InstagramOAuthTokens { ClientId = "INVALID" };

            var dataProvider = new InstagramDataProvider(tokens);

            await ExceptionsAssert.ThrowsAsync<OAuthKeysRevokedException>(async () => await dataProvider.LoadDataAsync(config));
        }
 public InstagramDataProvider(InstagramOAuthTokens tokens)
 {
     _tokens = tokens;
 }