public void Transfer(string from, string to, decimal amount) { var command = new Transfer { From = from, To = to, Amount = amount }; _commandCoordinator.Handle(command); }
public void Handle(Transfer transfer) { var transferring = _repository.Get(Guid.NewGuid()); transferring.Transfer(transfer.From, transfer.To, transfer.Amount); }