Exemplo n.º 1
0
        public void TestMethod1()
        {
            var helpr1 = CashDispencingHelper.GetInstance();
            var helpr2 = CashDispencingHelper.GetInstance();

            Assert.IsTrue(helpr1 == helpr2);
        }
Exemplo n.º 2
0
        public List <CurrencyNote> GetNoOfNotesAndCount(int amount)
        {
            var cdHelper = CashDispencingHelper.GetInstance();
            List <CurrencyNote> currencyNotes = null;

            cdHelper.GetNoOfNotesAndCount(amount, currencyNotes,
                                          cdHelper.GetMaxCashDispencingHelper());

            return(currencyNotes);
        }
Exemplo n.º 3
0
        public List <CurrencyNote> GetNoOfNotesAndDenomination(int amount)
        {
            if (amount <= 0)
            {
                throw new Exception("Amount cannot be less than or equal to zero.");
            }
            var cdHelper = CashDispencingHelper.GetInstance();
            List <CurrencyNote> currencyNotes = null;

            cdHelper.GetNoOfNotesAndCount(ref amount, ref currencyNotes,
                                          cdHelper.GetMaxCashDispencingHelper());

            return(currencyNotes);
        }