Example #1
0
 private void OnNewMemberCreated(NewMemberCreated e)
 {
     _name = e.Name;
     _emailAddress = new EmailAddress(e.EmailAddress);
 }
Example #2
0
 protected Member(string name, EmailAddress emailAddress)
 {
     var e = new NewMemberCreated {Name = name, EmailAddress = emailAddress.ToString()};
     ApplyEvent(e);
 }