private void WriteJournal(String fileName) { var journalStatements = _dataStore.GetPackage(WorkFlowViewModel.InputJournalStatementsPackageDefintion) .MakeAccountPrintable(_dataStore, WorkFlowViewModel.DisplayableAccountNamesDictionaryPackageDefinition); JournalGateway gateway = new JournalGateway(fileName); gateway.WriteJournal(journalStatements); }
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); }