private RegisterCustomer(string emailAddress, string givenName, string familyName)
 {
     CustomerId       = ID.Generate();
     ConfirmationHash = Hash.Generate();
     EmailAddress     = EmailAddress.Build(emailAddress);
     Name             = PersonName.Build(givenName, familyName);
 }
Пример #2
0
 public Customer1Test()
 {
     emailAddress            = EmailAddress.Build("*****@*****.**");
     changedEmailAddress     = EmailAddress.Build("*****@*****.**");
     wrongConfirmationHash   = Hash.Generate();
     changedConfirmationHash = Hash.Generate();
     name = PersonName.Build("John", "Doe");
 }
Пример #3
0
 public Customer5Test()
 {
     customerID              = ID.Generate();
     emailAddress            = EmailAddress.Build("*****@*****.**");
     changedEmailAddress     = EmailAddress.Build("*****@*****.**");
     confirmationHash        = Hash.Generate();
     wrongConfirmationHash   = Hash.Generate();
     changedConfirmationHash = Hash.Generate();
     name           = PersonName.Build("John", "Doe");
     eventStream    = new List <IEvent>();
     recordedEvents = new List <IEvent>();
 }
Пример #4
0
 private ChangeCustomerName(string customerID, string givenName, string familyName)
 {
     CustomerId = ID.Build(customerID);
     Name       = PersonName.Build(givenName, familyName);
 }