public void SetUp() { //Arrange accountRepository = new Mock <IAccountRepository>(); notificationService = new Mock <INotificationService>(); log = new Mock <ILog>(); withdrawMoney = new WithdrawMoney(accountRepository.Object, notificationService.Object, log.Object); account = new Account(); }
public TransferMoney(IWithdrawMoney withdrawMoney, IAccountRepository accountRepository) : base(accountRepository) { this.withdrawMoney = withdrawMoney; }
public static void TransferMoney(IDepositMoney to, IWithdrawMoney from, double amount) { from.Withdraw(amount, "Money Transfer"); to.Deposit(amount, "Money Transfer"); }