Exemplo n.º 1
0
 void When(AddedUserAccount @event)
 {
     Id          = new UserAccountId(@event.UserAccountId);
     _roles      = new HashSet <RoleId>();
     _roleGroups = new HashSet <RoleGroupId>();
     _disabled   = false;
 }
Exemplo n.º 2
0
        // Behavior

        public UserAccount(UserAccountId userAccountId, UserAccountName name) : this()
        {
            Apply(
                new AddedUserAccount(userAccountId, name));
        }