public HistoryUseCase(IHistoryListPresenter historyPresenter, IBMIHistoryRepository historyRepository, Component disposableComponent) { this.historyPresenter = historyPresenter; this.historyRepository = historyRepository; this.disposableComponent = disposableComponent; }
void ConstructUseCases(IHistoryListPresenter historyListPresenter, IBMIHistoryRepository historyRepository, IBMIPresenter bmiPresenter, IUserAccountRepository userAccountRepository, IAccountPresenter accountPresenter) { historyUseCase = new HistoryUseCase( historyListPresenter, historyRepository, this); bmiUseCase = new BMIUseCase <BMIDataTransferObject>( bmiPresenter, historyUseCase as IPushHistoryDelegate, this); logoutUseCase = new LogoutUseCase( userAccountRepository, accountPresenter, this); }