Exemple #1
0
 public User(Guid personId, PersonName name, UserPrincipal principal) : base(personId, name)
 {
     this.UserPrincipal = principal;
 }
Exemple #2
0
 public void Handle(AdministratorCreatedEvent evt)
 {
     this.Id            = evt.AggregateId;
     this.Name          = evt.PersonName;
     this.UserPrincipal = evt.Principal;
 }
Exemple #3
0
 public User(PersonName name, UserPrincipal principal) : base(Guid.NewGuid(), name)
 {
     this.UserPrincipal = principal;
 }