예제 #1
0
 public User(Guid id, ShortName name, Email email)
 {
     Id    = id;
     Name  = name;
     Email = email;
     Roles = new RoleCollection();
 }
예제 #2
0
 public User(ShortName name, Email email, Password password)
 {
     Id       = Guid.NewGuid();
     Name     = name;
     Email    = email;
     Password = password;
     Roles    = new RoleCollection();
 }