public void DeleteAction_Always_RedirectsToIndexActionSettingMessage()
 {
     var movie = _documentSession.SaveNewMovieToRavenDB(new Movie().NewValid());
     var homeController = new HomeController(_documentSession);
     homeController.Delete(movie.Id);
     Assert.That(homeController.TempData["message"], Is.EqualTo(string.Format("Deleted Movie with the Id {0}", movie.Id)));
 }
 public void DeleteAction_Always_RedirectsToIndexAction()
 {
     var movie = _documentSession.SaveNewMovieToRavenDB(new Movie().NewValid());
     var homeController = new HomeController(_documentSession);
     var result = (RedirectToRouteResult)homeController.Delete(movie.Id);
     Assert.That(result.RouteValues["action"], Is.EqualTo("Index"));
 }