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;
        }
Esempio n. 2
0
 public ClusterImportTest()
 {
     _notificationClusterRepository = new Mock <INotificationClusterRepository>();
     _notificationRepository        = new Mock <INotificationRepository>();
     _clusterImportService          = new ClusterImportService(
         _notificationClusterRepository.Object,
         _notificationRepository.Object);
 }