コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: knarushoff/CashRegister
 public void A_ReadInputCSVFile_3ItemsRead()
 {
     // TODO: Fix this
     ICashRegisterInputMgr inputMgr = new CashRegisterInputMgrFactory(MoneyConstants.Infile).GetCashRegisterInputMgr();
     List<TransactionAmounts> transList = inputMgr.HandleInput("C:/Dev/CashRegister/input/crt-test-data.csv");
     Assert.AreEqual(transList.Count, 3);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: knarushoff/CashRegister
        private void Execute()
        {
            ICashRegisterInputMgr inputMgr = new CashRegisterInputMgrFactory(MoneyConstants.Infile).GetCashRegisterInputMgr();
            List<TransactionAmounts> list = inputMgr.HandleInput("C:/Dev/CashRegister/input/crt-test-data.csv");

            List<string> strList = new CashRegisterManager().ProcessAmountsFromList(list);

            ICashRegisterOutputMgr outputMgr = new CashRegisterOutputMgrFactory(MoneyConstants.Outfile).GetCashRegisterOutputMgr();
            bool status = outputMgr.HandleOutput("C:/Dev/CashRegister/input/output.csv", strList);
               // Console.ReadLine();
        }