public void Test_DisqusOAuthAuthentication_LoggedOut() { var auth = new DisqusOAuthAuthentication(apiKey: TEST_API_KEY); Assert.AreEqual(null, auth.AuthenticationToken); Assert.AreEqual(DisqusAuthenticationType.OAuth, auth.AuthType); }
public void SetupApiService() { // Add anything that should happen before each test var auth = new DisqusOAuthAuthentication(TEST_API_KEY); _apiService = new DisqusApiService(auth, new Uri("https://disqus.com/"), _factory); }
public void Test_DisqusOAuthAuthentication_LoggedIn() { const string accessToken = "5662bb7b415e4cd0bc05b26c40e23e97"; var auth = new DisqusOAuthAuthentication(apiKey: TEST_API_KEY, accessToken: accessToken); Assert.AreEqual(TEST_API_KEY, auth.ApiKey); Assert.AreEqual(DisqusAuthenticationType.OAuth, auth.AuthType); Assert.AreEqual(accessToken, auth.AuthenticationToken); }