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); }