public AccountTransactionService( IRepository repository, INotifyAccountSummary notifyAccountSummary) { _repository = repository; _notifyAccountSummary = notifyAccountSummary; }
public AccountTransactionService Build() { if (_defaultRepository) { _repository = DefaultRepository().Object; } if (_defaultNotifyAccountSummary) { _notifyAccountSummary = DefaultNotifyAccountSummary().Object; } return(new AccountTransactionService(_repository, _notifyAccountSummary)); }
public TransactionServiceBuilder WithoutNotifyAccountSummary(INotifyAccountSummary notifyAccountSummary) { _defaultNotifyAccountSummary = false; _notifyAccountSummary = notifyAccountSummary; return(this); }