public void Deposit()
        {
            TransactionSession session = new TransactionSession();

            Assert.AreEqual(false, session.Deposit(4.0M));
            Assert.AreEqual(true, session.Deposit(5.0M));
            Assert.AreEqual(5.0M, session.Balance);
        }
 public void Initialize()
 {
     vm      = new VendingMachine();
     session = new TransactionSession();
     session.Deposit(2.00M);
     vm.Initialize();
 }
        public void FinishTransaction()
        {
            TransactionSession session = new TransactionSession();

            session.Deposit(5.0M);
            Assert.AreEqual("Quarters: 20\nDimes: 0\nNickles: 0\nTotal change: $5.00", session.FinishTransaction());
        }
        public void Deduct()
        {
            TransactionSession session = new TransactionSession();

            session.Deposit(5.0M);
            session.Deduct(1.0M);
            Assert.AreEqual(4.0M, session.Balance);
        }