public Sage50TransactionGetter(SageTransactionReader sageTransactionReader, SageTransactionSchema schema, INominalCodeLookupFactory nominalCodeLookupFactory) { this.sageTransactionReader = sageTransactionReader; this.schema = schema; this.nominalCodeLookupFactory = nominalCodeLookupFactory; }
private static IEnumerable <Transaction> ParseTransactions(params object[][] dataRows) { var reader = new SageTransactionReader(new SageTransactionSchema(), new SqlFinancialTransactionReader(new LedgerEntryParser(), new TabularFormatConverter())); return(reader.GetJournals(MockDataReader(dataRows), new NominalCodeLookup(nominalCodeLookup)).ToList()); }