public void CommonSetup()
 {
     _databaseConnection = new SqlConnection(_databaseService.WebConfiguration.SqlConnectionString);
     _unitOfWork         = new UnitOfWork(_databaseConnection);
     _roatpApiClientMock = new Mock <IRoatpApiClient>();
     _repository         = new ApprovalsExtractRepository(_unitOfWork, _roatpApiClientMock.Object, new Mock <ILogger <ApprovalsExtractRepository> >().Object);
 }
 public UpdateProvidersCacheHandler(
     ILogger <UpdateProvidersCacheHandler> logger
     , IApprovalsExtractRepository approvalsExtractRepository
     )
 {
     _logger = logger;
     _approvalsExtractRepository = approvalsExtractRepository;
 }
Beispiel #3
0
 public ImportApprovalsHandler(
     ILogger <ImportApprovalsHandler> logger
     , IApprovalsExtractRepository approvalsExtractRepository
     , ISettingRepository settingRepository
     , IOuterApiService outerApiService
     )
 {
     _logger = logger;
     _approvalsExtractRepository = approvalsExtractRepository;
     _settingRepository          = settingRepository;
     _outerApiService            = outerApiService;
 }