コード例 #1
0
 public Sage50TransactionGetter(SageTransactionReader sageTransactionReader, SageTransactionSchema schema, INominalCodeLookupFactory nominalCodeLookupFactory)
 {
     this.sageTransactionReader = sageTransactionReader;
     this.schema = schema;
     this.nominalCodeLookupFactory = nominalCodeLookupFactory;
 }
コード例 #2
0
        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());
        }