private RegisterCustomer(string emailAddress, string givenName, string familyName)
 {
     CustomerId       = ID.Generate();
     ConfirmationHash = Hash.Generate();
     EmailAddress     = EmailAddress.Build(emailAddress);
     Name             = PersonName.Build(givenName, familyName);
 }
Exemple #2
0
 public Customer1Test()
 {
     emailAddress            = EmailAddress.Build("*****@*****.**");
     changedEmailAddress     = EmailAddress.Build("*****@*****.**");
     wrongConfirmationHash   = Hash.Generate();
     changedConfirmationHash = Hash.Generate();
     name = PersonName.Build("John", "Doe");
 }
Exemple #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>();
 }
Exemple #4
0
 private ChangeCustomerEmailAddress(string customerID, string emailAddress)
 {
     CustomerId       = ID.Build(customerID);
     EmailAddress     = EmailAddress.Build(emailAddress);
     ConfirmationHash = Hash.Generate();
 }