Example #1
0
        // Behavior

        public Role(RoleId roleId, Name name) : this()
        {
            Apply(
                new AddedRole(roleId, name));
        }
Example #2
0
 void When(AddedRole @event)
 {
     Id           = new RoleId(@event.RoleId);
     _permissions = new List <RolePermission>();
     _archived    = false;
 }