public void Handle(RegisterTenant command) { var newId = 1111; var(tenant, userAccount, events) = Tenant.CreateAccount(newId, command.UserName, command.Password, command.Email); tenantRepository.Create(tenant); eventBus.Publish(events); }