Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public TransferMoney(IWithdrawMoney withdrawMoney, IAccountRepository accountRepository) : base(accountRepository)
 {
     this.withdrawMoney = withdrawMoney;
 }
Exemplo n.º 3
0
 public static void TransferMoney(IDepositMoney to, IWithdrawMoney from, double amount)
 {
     from.Withdraw(amount, "Money Transfer");
     to.Deposit(amount, "Money Transfer");
 }