public void UnAuthorizedUserCannotLogout() { var data = new HotelBookingSystemData(); var controller = new UsersController(data, null); controller.Logout(); }
public void SetUp() { this.testData = new HotelBookingSystemData(); this.testUser = new User("SampleName", "Samplepassword", Roles.User); this.testController = new UsersController(this.testData, this.testUser); }