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