コード例 #1
0
 public void Transfer(string from, string to, decimal amount)
 {
     var command = new Transfer
     {
         From = from,
         To = to,
         Amount = amount
     };
     _commandCoordinator.Handle(command);
 }
コード例 #2
0
        public void Handle(Transfer transfer)
        {
            var transferring = _repository.Get(Guid.NewGuid());

            transferring.Transfer(transfer.From, transfer.To, transfer.Amount);
        }
コード例 #3
0
 public void Handle(Transfer transfer)
 {
     var transferring = _repository.Get(Guid.NewGuid());
     transferring.Transfer(transfer.From, transfer.To, transfer.Amount);
 }