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); }
public LedgerBook Build() { var book = new LedgerBook(new ReconciliationBuilder(new FakeLogger())) { Name = Name, Modified = Modified, StorageKey = StorageKey }; book.SetReconciliations(this.reconciliations); if (book.Reconciliations.None()) { this.ledgerBuckets.ForEach(l => book.AddLedger(l)); } LedgerBookTestData.Finalise(book, this.lockWhenFinished); return(book); }