public void Cannot_DeleteConfirmed_nonexistent_Trip()
 {
     TripController controller = new TripController(repository, provider);
     ViewResult result = controller.DeleteConfirmed(Guid.NewGuid()) as ViewResult;
     IQueryable<Trip> model = result.Model as IQueryable<Trip>;
 }
 public void Cannot_DeleteConfirmed_other_user_trips()
 {
     TripController controller = new TripController(notUserRepository, provider);
     ViewResult result = controller.DeleteConfirmed(notUserTrip.TripID) as ViewResult;
     IQueryable<Trip> model = result.Model as IQueryable<Trip>;
 }
 public void DeleteConfirmed_deletes_correct_Trip()
 {
     TripController controller = new TripController(repository, provider);
     controller.DeleteConfirmed(userTrip.TripID);
     ViewResult result = controller.Index() as ViewResult;
     IQueryable<Trip> model = result.Model as IQueryable<Trip>;
     Assert.IsFalse(model.Contains(userTrip));
     Assert.AreEqual(0, model.Count());
 }