コード例 #1
0
        // Behavior

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