Esempio n. 1
0
        public void CannotWithdrawMoreThanOperationLimitOnStrictAccountTest()
        {
            decimal initialBalance = 3000m;
            decimal amount         = 2001m;
            var     testee         = new StrictBankAccount(initialBalance);

            testee.Withdraw(amount);
        }
Esempio n. 2
0
        public void CannotWithdrawMoreThanAvailableOnStrictAccountTest()
        {
            decimal initialBalance = 1000m;
            decimal amount         = 1500m;

            var testee = new StrictBankAccount(initialBalance);

            testee.Withdraw(amount);
        }