Ejemplo n.º 1
0
        private void WriteJournal(String fileName)
        {
            var journalStatements = _dataStore.GetPackage(WorkFlowViewModel.InputJournalStatementsPackageDefintion)
                                    .MakeAccountPrintable(_dataStore,
                                                          WorkFlowViewModel.DisplayableAccountNamesDictionaryPackageDefinition);

            JournalGateway gateway = new JournalGateway(fileName);

            gateway.WriteJournal(journalStatements);
        }
Ejemplo n.º 2
0
        private void WriteJournal(String fileName)
        {
            var journalStatementsa = JournalStatements.Select(x => new JournalStatement()
            {
                Account     = "acc",
                Date        = new DateTime(201, 3, 4),
                Description = "dfasf",
                Tag         = "t",
                Value       = -44
            }).ToList();
            JournalGateway gateway = new JournalGateway(fileName);

            gateway.WriteJournal(journalStatementsa);
        }