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