Ejemplo n.º 1
0
        public void Create_NoPermission()
        {
            _user.GroupId = UserGroupId.Limited;
            _permissionContext.RefreshLoggedUser(_repository);

            _queries.Awaiting(subject => subject.Create(_newArtistContract)).Should().Throw <NotAllowedException>();
        }