示例#1
0
        public void AuthenticateTest()
        {
            var browser  = new AniListBrowser(Resources.AniListClientId, Resources.AniListClientSecret);
            var response = browser.RefreshCredentials();

            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }
        public AniListProfileTests()
        {
            Browser = new AniListBrowser(Resources.AniListClientId, Resources.AniListClientSecret);
            var response = Browser.RefreshCredentials();

            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);

            Profile  = new AniListProfile(Resources.AniListClientId, Resources.AniListClientSecret, "");
            response = Profile.AuthenticateWithPin(Resources.AniListProfilePin);
            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }
示例#3
0
 public AniListBrowserTests()
 {
     Browser = new AniListBrowser(Resources.AniListClientId, Resources.AniListClientSecret);
     Browser.RefreshCredentials();
 }