public void Edit_Action_Saves_Updated_Review()
        {
            var editedReview = new Review();
            var controller = new ReviewController(_db);
            controller.Edit(editedReview);

            Assert.IsTrue(_db.Reviews.Contains(editedReview));
        }
        public void Index_Action_Model_Is_Three_Reviews()
        {
            var controller = new ReviewController(_db);
            var result = controller.Index() as System.Web.Mvc.ViewResult;
            var model = result.Model as IEnumerable<Review>;

            Assert.AreEqual(3, model.Count());
        }
        public void Edit_Action_Saves_Changes()
        {
            var editedReview = new Review();
            var controller = new ReviewController(_db);
            controller.Edit(editedReview);

            Assert.IsTrue(_db.ChangesSaved);
        }