/// <summary> /// Method to read csv input credit card statement /// </summary> /// <returns>SortedDictionary<DateTime, List<StandardCCBillOutput>></returns> public SortedDictionary <DateTime, List <StandardCCBillOutput> > ReadCSVFile() { Task.Factory.StartNew(() => ReadFile()).Wait(); IProcessCCStatements processBill = ProcessStatement.GetInstance(); SortedDictionary <DateTime, List <StandardCCBillOutput> > outputStatement = processBill.ProcessCreditCardBill(_txnTypeWiseUserTxnDetails); return(outputStatement); }
public static ProcessStatement GetInstance() { lock (_lock) { if (_processStatement == null) { _processStatement = new ProcessStatement(); } return(_processStatement); } }