public Guid AddCustomer(string name, string email, Address address)
 {
     var command = new AddCustomerCommand(name, email, address);
     var result = _processor.ProcessCommand(command);
     if (result.EventsWereEmitted)
     {
         return command.CreatedGuid;
     }
     throw new CreationFailedException(command.CreatedGuid, typeof (ICustomer));
 }
Ejemplo n.º 2
0
 public void UpdateInfo(string name, string email, Address address)
 {
     Name = name;
     Email = email;
     Address = address;
 }