public void Test_ExitTransaction()
        {
            //set selected item and place inventory
            _billingMachineOperations.InsertMoneyForOrder(100);
            var returnableAmount = _billingMachineOperations.ExitTransaction();

            Assert.AreEqual(100, returnableAmount);
        }
Beispiel #2
0
        private static void ExitTransaction(IMachineOperations ops)
        {
            var returnAmount = ops.ExitTransaction();

            Console.WriteLine(returnAmount > 0
                ? $"Please collect {returnAmount}kr from cash holder"
                : "All inserted money consumed in transactions or no amount inserted.Have a nice day!!!");

            ShowWelcomeScreen();
        }