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