Inheritance: BudgetAnalyser.Engine.Ledger.LedgerBook
Exemplo n.º 1
0
        public void TestInitialise()
        {
            Statement = StatementModelTestData.TestData2();

            // Mocking out the Calculator means we dont need the LedgerBook
            LedgerBook = new LedgerBookTestHarness(new Mock<IReconciliationBuilder>().Object);
            SetLedgerBalancesFakeDataSomeOverspentBuckets();

            Subject = new OverspentWarning();
            Act();
        }
Exemplo n.º 2
0
        public LedgerBookTestHarness BuildTestHarness(IReconciliationBuilder reconciliationBuilder)
        {
            var book = new LedgerBookTestHarness(reconciliationBuilder)
            {
                Name = Name,
                Modified = Modified,
                StorageKey = StorageKey
            };

            book.SetReconciliations(this.reconciliations);

            LedgerBookTestData.Finalise(book, this.lockWhenFinished);
            return book;
        }