コード例 #1
0
        // wczytac plik do stringu
        // rozbic string na linie
        // linie przetworzyc GetTransferEntry na typ BankTransfer
        public override List <BankTransfer> GetBankTransfers()
        {
            List <string>       stringsSerparatedFromMainContent = new List <string>();
            List <BankTransfer> listOfBankTransfers = new List <BankTransfer>();

            var    file        = new CoffeeFileOperation();
            string mainContent = file.GetFileContent(@"..\..\Coffee13\TaskTrainingTree\newTransfers.xml"); //path?\

            stringsSerparatedFromMainContent = CoffeeDeserialization.SplitMainStringtoTransferStrings(mainContent);

            foreach (var entry in stringsSerparatedFromMainContent)
            {
                listOfBankTransfers.Add(GetTransferEntry(entry));
            }


            return(listOfBankTransfers);
        }
コード例 #2
0
 protected override BankTransfer GetTransferEntry(string entry)
 {
     return(CoffeeDeserialization.DeserializeString(entry));
 }