public void UnAuthorizedUserCannotLogout()
        {
            var data = new HotelBookingSystemData();
            var controller = new UsersController(data, null);

            var view = controller.Logout();
        }
        public void AuthorizedUserMustLogoutSuccessfully()
        {
            var user = new User("admin1", "admin1", Roles.VenueAdmin);
            var data = new HotelBookingSystemData();
            var controller = new UsersController(data, user);

            var view = controller.Logout();

            var expected = "The user admin1 has logged out.";
            Assert.AreEqual(expected, view.Display());
        }
 public void UnAuthorizedUserCannotViewTheirProfile()
 {
     var data = new HotelBookingSystemData();
     var controller = new UsersController(data, null);
     var view = controller.MyProfile();
 }