예제 #1
0
        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
            });
        }
예제 #2
0
 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
     });
 }
예제 #3
0
 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
     });
 }