コード例 #1
0
ファイル: Transaction.cs プロジェクト: HOWLYYY/OOP
 public void Execute()
 {
     if (_from.IsDebittable(_money))
     {
         _to.Add(_money);
         _from.Debit(_money);
     }
     else
     {
         throw new Exception("No Money, no honey");
     }
 }