public void AuthorizeShouldThrowAuthorizaion_FailedException_IfTheUser_IsNotInRole() { var sampleUser = new User("Peshoo", "qwerty11", Roles.User); var sampleRoomsController = new RoomsController(this.dataSample, sampleUser); sampleRoomsController.Add(12, 12, 33.55m); }
public void AuthorizeShould_ThrowArgumentException_IfThereIsnt_CurrentlyLoggedUser() { var sampleRoomsController = new RoomsController(this.dataSample, null); sampleRoomsController.Add(12, 12, 33.55m); }