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