private void InitializeServices(TestDatabaseContext testDatabase) { this.updateAccountBalances = new UpdateAccountBalancesDbStatement(testDatabase); this.getAccountSettings = new GetAccountSettingsDbStatement(testDatabase); this.getCreatorRevenue = new GetCreatorRevenueDbStatement(testDatabase); this.persistCreditRefund = new PersistCreditRefund( new GuidCreator(), new PersistCommittedRecordsDbStatement(testDatabase)); this.createTransactionRefund = new CreateTransactionRefund( new GuidCreator(), new GetRecordsForTransactionDbStatement(testDatabase), new PersistCommittedRecordsDbStatement(testDatabase)); this.getCreditTransactionInformation = new GetCreditTransactionInformation( new GetRecordsForTransactionDbStatement(testDatabase)); this.getCalculatedAccountBalances = new GetCalculatedAccountBalancesDbStatement(testDatabase); }
public void Initialize() { this.getRecordsForTransaction = new Mock <IGetRecordsForTransactionDbStatement>(MockBehavior.Strict); this.target = new GetCreditTransactionInformation(this.getRecordsForTransaction.Object); }