public void TestMethod1() { var helpr1 = CashDispencingHelper.GetInstance(); var helpr2 = CashDispencingHelper.GetInstance(); Assert.IsTrue(helpr1 == helpr2); }
public List <CurrencyNote> GetNoOfNotesAndCount(int amount) { var cdHelper = CashDispencingHelper.GetInstance(); List <CurrencyNote> currencyNotes = null; cdHelper.GetNoOfNotesAndCount(amount, currencyNotes, cdHelper.GetMaxCashDispencingHelper()); return(currencyNotes); }
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); }