예제 #1
0
 public static ChartOfAccounts GetTestChartOfAccounts(this ServiceTests tests, int id)
 {
     return(new ChartOfAccounts
     {
         Id = id,
         CompanyId = tests.GetTestCompany().Id,
         LedgerAccounts = tests.GetTestLedgerAccounts()
     });
 }
예제 #2
0
 public static IList <LedgerTransactionLine> GetTestAccountLedgerTransactionLines(this ServiceTests tests)
 {
     return(new List <LedgerTransactionLine>
     {
         new LedgerTransactionLine
         {
             Id = 1,
             LedgerTransactionId = 1,
             LedgerAccountId = tests.GetTestLedgerAccounts()[0].Id,
             LedgerAccount = tests.GetTestLedgerAccounts()[0],
             Amount = 2000,
             IsDebit = true
         },
         new LedgerTransactionLine
         {
             Id = 2,
             LedgerTransactionId = 1,
             LedgerAccountId = tests.GetTestLedgerAccounts()[0].Id,
             LedgerAccount = tests.GetTestLedgerAccounts()[0],
             Amount = 2000,
             IsDebit = true
         },
         new LedgerTransactionLine
         {
             Id = 3,
             LedgerTransactionId = 1,
             LedgerAccountId = tests.GetTestLedgerAccounts()[0].Id,
             LedgerAccount = tests.GetTestLedgerAccounts()[0],
             Amount = 6000,
             IsDebit = false
         }
     });
 }
예제 #3
0
 public static LedgerAccount GetTestLedgerAccount(this ServiceTests tests)
 {
     return(tests.GetTestLedgerAccounts().First());
 }