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