public void GetMoreStartDateLessTest() { string startDate = "01/01/2018"; string endDate = "01/02/2018"; Assert.True(GetAllTweets.GetMore(startDate, endDate, 100), "The GetMore test failed"); Assert.False(GetAllTweets.GetMore(startDate, endDate, 99), "The GetMore test faile on count change."); }
public IActionResult Tweets(string startDate, string endDate) { List <Tweets> tweetList; TweetView tweetView = new TweetView(); if (!string.IsNullOrEmpty(startDate) && !string.IsNullOrEmpty(endDate)) { tweetView.TweetList = GetAllTweets.GetTweets(startDate, endDate); } else { tweetView.TweetList = new List <Tweets>(); } return(View(tweetView)); }