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