Пример #1
0
 public User(UserId id, UserName userName, FullName name)
 {
     this.id       = id;
     this.userName = userName;
     this.name     = name;
 }
Пример #2
0
 public User(UserName userName, FullName name)
 {
     id            = new UserId(Guid.NewGuid().ToString());
     this.userName = userName;
     this.name     = name;
 }