public async Task TestInvalidOAuth() { var config = new FacebookDataConfig { UserId = "8195378771", }; var tokens = new FacebookOAuthTokens { AppId = "INVALID", AppSecret = "INVALID" }; var dataProvider = new FacebookDataProvider(tokens); await ExceptionsAssert.ThrowsAsync<OAuthKeysRevokedException>(async () => await dataProvider.LoadDataAsync(config)); }
public FacebookDataProvider(FacebookOAuthTokens tokens) { _tokens = tokens; }