public TransferMoney(IWithdrawCommand withdrawCommand, IDepositCommand depositCommand) { _withdrawCommand = withdrawCommand ?? throw new ArgumentNullException(nameof(withdrawCommand)); _depositCommand = depositCommand ?? throw new ArgumentNullException(nameof(depositCommand)); }
public WithdrawMoney(IWithdrawCommand withdrawCommand) { _withdrawCommand = withdrawCommand ?? throw new ArgumentNullException(nameof(withdrawCommand)); }