Exemplo n.º 1
0
        public string Withdraw_HasSufficientBalance_returnRemainingBalance(int balance, int overdraft, int withdrawalAmount)
        {
            var atm = new Atm(int.MaxValue);

            atm.BeginSession(0, 0, balance, overdraft);
            var result = atm.WithdrawCash(withdrawalAmount);

            atm.EndSession();
            return(result);
        }