public void GetTenTweetsFailsForIncorrectUsername()
        {
            // Arrange
            HomeController controller = new HomeController();

            System.Web.Configuration.WebConfigurationManager.AppSettings["AuthUrl"]        = "https://api.twitter.com/oauth2/token";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerKey"]    = "LKfy4Pv8AOHEntNBwU567Clzg";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerSecret"] = "NJTlecFoyE89FvZEGcH2hzrwTCddZu4e2EcsbE36rtwK4HpPVO";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ReadTweetUrl"]   = "https://api.twitter.com/1.1/statuses/user_timeline.json";

            ReadContentController contentController = new ReadContentController();

            contentController.ReadTwitterContent(10, "Test");
        }
        public void GetTenTweetsFailureForIncorrectCreds()
        {
            // Arrange
            HomeController controller = new HomeController();

            System.Web.Configuration.WebConfigurationManager.AppSettings["AuthUrl"]        = "https://api.twitter.com/oauth2/token";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerKey"]    = "test";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerSecret"] = "test";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ReadTweetUrl"]   = "https://api.twitter.com/1.1/statuses/user_timeline.json";

            ReadContentController contentController = new ReadContentController();

            contentController.ReadTwitterContent(10, "Salesforce");
        }
        public void GetTenRecordsForSalesForceUserSuccess()
        {
            // Arrange
            HomeController controller = new HomeController();

            System.Web.Configuration.WebConfigurationManager.AppSettings["AuthUrl"]        = "https://api.twitter.com/oauth2/token";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerKey"]    = "LKfy4Pv8AOHEntNBwU567Clzg";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ConsumerSecret"] = "NJTlecFoyE89FvZEGcH2hzrwTCddZu4e2EcsbE36rtwK4HpPVO";
            System.Web.Configuration.WebConfigurationManager.AppSettings["ReadTweetUrl"]   = "https://api.twitter.com/1.1/statuses/user_timeline.json";

            ReadContentController contentController = new ReadContentController();
            string response = contentController.ReadTwitterContent(10, "Salesforce");

            Assert.IsNotNull(response);
        }