public NotificationImportService(INotificationMapper notificationMapper,
                                         INotificationRepository notificationRepository,
                                         INotificationImportRepository notificationImportRepository,
                                         IImportLogger logger,
                                         IHub sentryHub,
                                         IMigratedNotificationsMarker migratedNotificationsMarker,
                                         ISpecimenImportService specimenImportService,
                                         IImportValidator importValidator,
                                         IClusterImportService clusterImportService,
                                         ICultureAndResistanceService cultureAndResistanceService,
                                         IDrugResistanceProfileService drugResistanceProfileService,
                                         ICaseManagerImportService caseManagerImportService)
        {
            sentryHub.ConfigureScope(s =>
            {
                s.SetTag("context", "migration");
            });

            _notificationMapper           = notificationMapper;
            _notificationRepository       = notificationRepository;
            _notificationImportRepository = notificationImportRepository;
            _logger = logger;
            _migratedNotificationsMarker  = migratedNotificationsMarker;
            _specimenImportService        = specimenImportService;
            _importValidator              = importValidator;
            _clusterImportService         = clusterImportService;
            _cultureAndResistanceService  = cultureAndResistanceService;
            _drugResistanceProfileService = drugResistanceProfileService;
            _caseManagerImportService     = caseManagerImportService;
        }
Пример #2
0
 public SpecimenImportTest()
 {
     _specimenImportService = new SpecimenImportService(_logger.Object, _specimenService.Object);
 }