public static LedgerTransaction GetTestLedgerTransactionWithDifferentTotalDebitAndTotalCreditAmounts( this ServiceTests tests) { var transactionLines = new List <LedgerTransactionLine>(); transactionLines.AddRange(tests.GetTestLedgerTransactionLines()); transactionLines.Add(new LedgerTransactionLine { Id = 3, LedgerTransactionId = 1, LedgerAccountId = tests.GetTestLedgerAccounts()[3].Id, LedgerAccount = tests.GetTestLedgerAccounts()[3], Amount = 4000, IsDebit = false }); return(new LedgerTransaction { Id = 1, Documentation = "Test", Description = "Test", PostingDate = DateTime.Now, LedgerTransactionLines = transactionLines, ChartOfAccountsId = 1 }); }
public static LedgerTransaction GetTestLedgerTransactionWithDifferentPostingPeriod(this ServiceTests tests) { return(new LedgerTransaction { Id = 1, Documentation = "Test", Description = "Test", PostingDate = DateTime.Now.AddMonths(-1), LedgerTransactionLines = tests.GetTestLedgerTransactionLines(), ChartOfAccountsId = 1 }); }
public static LedgerTransaction GetTestLedgerTransaction(this ServiceTests tests) { return(new LedgerTransaction { Id = 1, Documentation = "Test", Description = "Test", PostingDate = DateTime.Now.Date, LedgerTransactionLines = tests.GetTestLedgerTransactionLines(), ChartOfAccountsId = 1 }); }