protected function createEventProvider()
 {
     return Customer::createEmpty();
 }
 protected function createCustomer()
 {
     $id = Uuid::uuid4();
     $name = new CustomerName(CustomerName::GENDER_MALE, 'abc', 'def', '*****@*****.**');
     return Customer::create($id, $name);
 }
 /**
  * {@inheritdoc}
  */
 public function handle(MessageInterface $message)
 {
     /** @var CreateCustomerCommand $message */
     $name = new CustomerName($message->getGender(), $message->getFirstName(), $message->getLastName(), $message->getEmail());
     $this->repository->save(Customer::create($message->getCustomerId(), $name));
 }