/** * Methods for WHEN */ private void WHEN_RegisterCustomer() { var registerCustomer = RegisterCustomer.Build(emailAddress.Value, name.GivenName, name.FamilyName); registeredCustomer = Customer4.Register(registerCustomer); customerID = registerCustomer.CustomerId; confirmationHash = registerCustomer.ConfirmationHash; }
public static void Main() { Customer4 c4 = new Customer4(); c4.Print(); Console.WriteLine("Please press ENTER to terminate program"); Console.Read(); }
/** * Methods for GIVEN */ private void GIVEN_CustomerRegistered() { registeredCustomer = Customer4.Reconstitute( new List <IEvent> { CustomerRegistered.Build(customerID, emailAddress, confirmationHash, name) } ); }