public void Handle(RegisterAccountCommand registerAccountCommand) { var account = new Account(registerAccountCommand.AccountId, registerAccountCommand.Name, registerAccountCommand.Balance); _repository.Save(account); }