public void CreateTweetTest1()
 {
     TweetsController target = new TweetsController(tweetRepository, userRepository);
     ActionResult actual;
     actual = target.CreateTweet();
     Assert.IsNotNull(actual);
     Assert.IsTrue(actual is ViewResult);
 }
 public void CreateTweetTest()
 {
     TweetsController target = new TweetsController(tweetRepository, userRepository);
     User user = userRepository.CreateUser("Test", "Test");
     target = (TweetsController)TestHelper.CreateControllerForUser(user, target);
     Tweet tweet = tweetRepository.CreateTweet(user.Id, "Test", DateTime.Now);
     ActionResult actual;
     actual = target.CreateTweet(tweet);
     Assert.IsNotNull(actual);
     Assert.IsTrue(actual is RedirectToRouteResult);
     userRepository.DeleteUser(user);
 }