示例#1
0
文件: AtmTests.cs 项目: Josbleuet/ttd
        public void ValidTransaction_WhenWithdraw_ShouldReturnsSuccess()
        {
            SetupAtmWithEnoughtOfCash();
            var transaction = GetValidTransaction();

            transactionFactory.Setup(f => f.Create(It.IsAny <Account>(), It.IsAny <int>())).Returns(transaction);

            var WithdrawIsSuccess = atm.DoWithdrawal(account, aWithdrawalAmount);

            Assert.That(WithdrawIsSuccess, Is.True);
        }