Example #1
0
        public void TestGetTweets()
        {
            com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart("pyu", "test1234", "test.cs.intridea.com");
            String tweets = part.GetTweets();

            Assert.IsTrue(tweets.Length > 0);
        }
Example #2
0
        public void TestGetTweetsWithoutSettings()
        {
            com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart();
            String tweets = part.GetTweets();

            Assert.IsTrue(tweets.Length > 0);
        }
Example #3
0
        public void TestSendTweets()
        {
            ServicePointManager.ServerCertificateValidationCallback +=
                delegate(
                    object sender,
                    X509Certificate certificate,
                    X509Chain chain,
                    SslPolicyErrors sslPolicyErrors)
            {
                return(true);
            };
            com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart("pyu", "test1234", "test.cs.intridea.com");
            TwitterService ts = new TwitterService(part);

            ts.LastId = "935793";
            TwitterLib.TweetCollection tweets = ts.GetTweets();
            ts.SendTweet("d @ping test");
            TwitterLib.TweetCollection tweets2 = ts.GetTweets();
            Assert.IsTrue(tweets2.Count > 0);
        }
 public TwitterService(PresentlyWebPart webpart)
 {
     _webpart = webpart;
     updateLogins(webpart.Username, webpart.Password, webpart.Url);
 }
 public TwitterService(PresentlyWebPart webpart)
 {
     _webpart = webpart;
     updateLogins(webpart.Username, webpart.Password, webpart.Url);
 }
 public void TestSendTweets()
 {
     ServicePointManager.ServerCertificateValidationCallback +=
         delegate(
         object sender,
         X509Certificate certificate,
         X509Chain chain,
         SslPolicyErrors sslPolicyErrors)
         {
             return true;
         };
     com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart("pyu", "test1234", "test.cs.intridea.com");
     TwitterService ts = new TwitterService(part);
     ts.LastId = "935793";
     TwitterLib.TweetCollection tweets = ts.GetTweets();
     ts.SendTweet("d @ping test");
     TwitterLib.TweetCollection tweets2 = ts.GetTweets();
     Assert.IsTrue(tweets2.Count > 0);
 }
 public void TestGetTweetsWithoutSettings()
 {
     com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart();
     String tweets = part.GetTweets();
     Assert.IsTrue(tweets.Length > 0);
 }
 public void TestGetTweets()
 {
     com.intridea.presently.PresentlyWebPart part = new com.intridea.presently.PresentlyWebPart("pyu","test1234", "test.cs.intridea.com");
     String tweets = part.GetTweets();
     Assert.IsTrue(tweets.Length > 0);
 }