示例#1
0
 public AlertService()
 {
     _userSession = new UserSession();
     _alertRepository = new AlertRepository();
     _webContext = new WebContext();
     alert = new Alert();
 }
示例#2
0
 public AlertService(IOrderRepository orderRepository, IInstrumentRepository instrumentRepository, IAlertRepository alertRepository, IAlertManager alertManager )
 {
     _orderRepository = orderRepository;
     _instrumentRepository = instrumentRepository;
     _alertRepository = alertRepository;
     _alertManager = alertManager;
 }
 public TasksController(ITaskRepository repo, IMapper mapper, IAlertRepository alertRepository, IReactCrashUserRepository userRepository)
 {
     _repo      = repo;
     _mapper    = mapper;
     _alertRepo = alertRepository;
     _userRepo  = userRepository;
 }
 public AlertValueService(IAlertValueRepository alertValueRepository, IAlertRepository alertRepository,
                          INormalizedLogRepository normalizedLogRepository)
 {
     _alertValueRepository    = alertValueRepository;
     _alertRepository         = alertRepository;
     _normalizedLogRepository = normalizedLogRepository;
 }
示例#5
0
 public AlertsController(IAlertRepository repo, IMapper mapper, IHubContext <AlertHub> hubContext, UserManager <reactCrashUser> userManager)
 {
     _repo        = repo;
     _mapper      = mapper;
     _alertHub    = hubContext;
     _userManager = userManager;
 }
示例#6
0
 public PatchAlertSeverityQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertRepository alertRepository)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertRepository = alertRepository;
 }
 public AlertListPresenter(IAlertListView alertListView, IAlertRepository alertRepository, IRemoteOperationManager remoteOperationManager)
 {
     _view                   = alertListView ?? throw new ArgumentNullException(nameof(alertListView));
     _alertRepository        = alertRepository ?? throw new ArgumentNullException(nameof(alertRepository));
     _remoteOperationManager = remoteOperationManager ?? throw new ArgumentNullException(nameof(remoteOperationManager));
     _view.SaveRequested    += View_SaveRequested;
     LoadAlerts();
 }
 public ComorbiditiesModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(service, authorizationService, notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditComorbidities;
 }
示例#9
0
 public SocialRiskFactorsModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(service, authorizationService, notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditSocialRiskFactors;
 }
 public ContactTracingModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(service, authorizationService, notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditContactTracing;
 }
 public DismissModel(IAlertService alertService,
                     IAlertRepository alertRepository,
                     IAuthorizationService authorizationService)
 {
     this.alertService         = alertService;
     this.alertRepository      = alertRepository;
     this.authorizationService = authorizationService;
 }
示例#12
0
 public TreatmentEventsModel(
     INotificationService notificationService,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(notificationService, authorizationService, notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditTreatmentEvents;
 }
示例#13
0
 public MBovisUnpasteurisedMilkConsumptionsModel(
     INotificationService notificationService,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(notificationService, authorizationService,
                                              notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditMBovisUnpasteurisedMilkConsumptions;
 }
 public UnmatchedLabResultAlertsJob(
     ISpecimenService specimenService,
     IAlertRepository alertRepository,
     IAlertService alertService)
 {
     _specimenService = specimenService;
     _alertRepository = alertRepository;
     _alertService    = alertService;
 }
示例#15
0
 public PostAlertQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertRepository alertRepository,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertRepository   = alertRepository;
     _autoMapperService = autoMapperService;
 }
示例#16
0
 public AlertService(
     IAlertRepository alertRepository,
     INotificationRepository notificationRepository,
     IAuthorizationService authorizationService)
 {
     _alertRepository        = alertRepository;
     _notificationRepository = notificationRepository;
     _authorizationService   = authorizationService;
 }
示例#17
0
 public SocialContextVenuesModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository,
     IUserHelper userHelper) : base(service, authorizationService, notificationRepository, alertRepository, userHelper)
 {
     CurrentPage = NotificationSubPaths.EditSocialContextVenues;
 }
 public GetTransportationAlertListQueueHandler(
     IServiceBusCommunicationService serviceBusCommunicationService,
     IAlertRepository alertRepository,
     IAutoMapperService autoMapperService)
 {
     _serviceBusCommunicationService = serviceBusCommunicationService;
     _alertRepository   = alertRepository;
     _autoMapperService = autoMapperService;
 }
示例#19
0
 public MBovisExposureToKnownCasesModel(
     INotificationService notificationService,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository) : base(notificationService, authorizationService,
                                              notificationRepository, alertRepository)
 {
     CurrentPage = NotificationSubPaths.EditMBovisExposureToKnownCases;
 }
示例#20
0
 public ListController(
     IAlertRepository alertRepository,
     IListRepository listRepository,
     IAlertListFactory alertListFactory)
 {
     this._alertRepository  = alertRepository;
     this._listRepository   = listRepository;
     this._alertListFactory = alertListFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertRepositoryTests"/> class.
 /// </summary>
 public AlertRepositoryTests()
 {
     this.httpClientHelper = new Mock<IHttpClientHelper>();
     Business.Dependencies.Register();
     Dependencies.Register();
     DIContainer.Instance.RegisterInstance<IHttpClientHelper>(this.httpClientHelper.Object);
     this.alertRepository = DIContainer.Instance.Resolve<IAlertRepository>();
     this.alertList = SetUpAlertData();
 }
 public MBovisExposureToKnownCaseModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IItemRepository <MBovisExposureToKnownCase> mBovisExposureToKnownCasesRepository,
     IAlertRepository alertRepository) : base(service, authorizationService, notificationRepository, alertRepository)
 {
     _mBovisExposureToKnownCasesRepository = mBovisExposureToKnownCasesRepository;
 }
示例#23
0
 public UnmatchedLabResultAlertsJob(
     ISpecimenService specimenService,
     IAlertRepository alertRepository,
     IAlertService alertService,
     NtbsContext ntbsContext) : base(ntbsContext)
 {
     _specimenService = specimenService;
     _alertRepository = alertRepository;
     _alertService    = alertService;
 }
示例#24
0
 public SocialContextAddressModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IItemRepository <SocialContextAddress> socialContextAddressRepository,
     IAlertService alertService,
     IAlertRepository alertRepository)
     : base(service, authorizationService, notificationRepository, socialContextAddressRepository, alertService, alertRepository)
 {
 }
示例#25
0
 public AlertInputPresenter(IAlertInputView alertInputView, IAlertService alertService,
                            IAlertRepository alertRepository, IRemoteOperationManager remoteOperationManager)
 {
     _view                   = alertInputView ?? throw new ArgumentNullException(nameof(alertInputView));
     _alertService           = alertService ?? throw new ArgumentNullException(nameof(alertService));
     _alertRepository        = alertRepository ?? throw new ArgumentNullException(nameof(alertRepository));
     _remoteOperationManager = remoteOperationManager ?? throw new ArgumentNullException(nameof(remoteOperationManager));
     SubscribeToEvents();
     LoadAlerts();
 }
示例#26
0
 protected NotificationEditModelBase(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository)
     : base(service, authorizationService, notificationRepository)
 {
     ValidationService = new ValidationService(this);
     _alertRepository  = alertRepository;
 }
 public AbscencesThresholdAlertProvider(IAlertRepository alertRepository, ICustomParametersProvider customParametersProvider, ITypesRepository typesRepository, IMessagingProvider messagingProvider, IUrlProvider urlProvider, IImageProvider imageProvider, ISMSProvider smsProvider)
 {
     _alertRepository          = alertRepository;
     _customParametersProvider = customParametersProvider;
     _messagingProvider        = messagingProvider;
     _urlProvider     = urlProvider;
     _imageProvider   = imageProvider;
     _smsProvider     = smsProvider;
     _typesRepository = typesRepository;
 }
示例#28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonAlertData"/> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 public PersonAlertData(IApplicationSettings applicationSettings, IAlertRepository alertRepository, IShipRepository shipRepository, IGuestRepository guestRepository, IShipTimeRepository shipTimeRepository, ICrewRepository crewRepository, IVisitorRepository visitorRepository)
 {
     this.applicationSettings = applicationSettings;
     this.alertClientRepository = alertRepository;
     this.shipRepository = shipRepository;
     this.guestRepository = guestRepository;
     this.shipTimeRepository = shipTimeRepository;
     this.crewClientRepository = crewRepository;
     this.visitorClientRepository = visitorRepository;
 }
示例#29
0
 public PreviousHistoryModel(
     INotificationService service,
     IAuthorizationService authorizationService,
     INotificationRepository notificationRepository,
     IAlertRepository alertRepository,
     IReferenceDataRepository referenceDataRepository) : base(service, authorizationService, notificationRepository, alertRepository)
 {
     _referenceDataRepository = referenceDataRepository;
     CurrentPage = NotificationSubPaths.EditPreviousHistory;
 }
示例#30
0
 public SpecimenService(
     IConfiguration configuration,
     IAuditService auditService,
     IAlertRepository alertRepository)
 {
     _reportingDbConnectionString        = configuration.GetConnectionString(Constants.DbConnectionStringReporting);
     _specimenMatchingDbConnectionString = configuration.GetConnectionString("specimenMatching");
     _auditService    = auditService;
     _alertRepository = alertRepository;
 }
示例#31
0
 public AlertService()
 {
     _userSession = new UserSession();
     _alertRepository = new AlertRepository();
     _webContext = new WebContext();
     _friendRepository = new FriendRepository();
     alert = new Alert();
     _accountRepository = new AccountRepository();
     _groupMemberRepository = new GroupMemberRepository();
     _notifycationRepository = new NotificationRepository();
 }
示例#32
0
 public HomeController(
     IServiceTicketRepository serviceTickets,
     IMessageRepository messageRepository,
     IAlertRepository alertRepository,
     IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets         = serviceTickets;
     this.messageRepository      = messageRepository;
     this.alertRepository        = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
示例#33
0
 public TwilioEngine(IAccountRepository accountRepository, ICallRepository callRepository, IConferenceRepository conferenceRepository, IConferenceParticipantRepository conferenceParticipantRepository,
                     IAlertRepository alertRepository, IActivityLogRepository activityLogRepository, ILogger <TwilioEngine> logger)
 {
     AccountRepository               = accountRepository;
     CallRepository                  = callRepository;
     ConferenceRepository            = conferenceRepository;
     ConferenceParticipantRepository = conferenceParticipantRepository;
     AlertRepository                 = alertRepository;
     ActivityLogRepository           = activityLogRepository;
     Logger = logger;
 }
示例#34
0
 public AlertService()
 {
     _userSession            = new UserSession();
     _alertRepository        = new AlertRepository();
     _webContext             = new WebContext();
     _friendRepository       = new FriendRepository();
     alert                   = new Alert();
     _accountRepository      = new AccountRepository();
     _groupMemberRepository  = new GroupMemberRepository();
     _notifycationRepository = new NotificationRepository();
 }
示例#35
0
 public HomeController(
                       IServiceTicketRepository serviceTickets,
                       IMessageRepository messageRepository,
                       IAlertRepository alertRepository,
                       IScheduleItemRepository scheduleItemRepository)
 {
     this.serviceTickets = serviceTickets;
     this.messageRepository = messageRepository;
     this.alertRepository = alertRepository;
     this.scheduleItemRepository = scheduleItemRepository;
 }
 public ReceiveAlertCommandHandler(
     IAlertRepository alertRepository,
     ITeamRepository teamRepository,
     IManagerRepository managerRepository,
     IFollowupAdapter followupAdapter)
 {
     _alertRepository   = alertRepository;
     _teamRepository    = teamRepository;
     _managerRepository = managerRepository;
     _followupAdapter   = followupAdapter;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MasterDataRepository" /> class.
 /// </summary>
 /// <param name="referenceRepository">The reference repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="voyageRepository">The voyage repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="alertRepository">The alert repository.</param>
 public MasterDataRepository(IReferenceDataRepository referenceRepository, ICrewRepository crewRepository, IShipTimeRepository shipTimeRepository, IShipRepository shipRepository, IVoyageRepository voyageRepository, IVisitorRepository visitorRepository, IApplicationSettings applicationSettings, IAlertRepository alertRepository)
 {
     this.crewRepository = crewRepository;
     this.referenceDataRepository = referenceRepository;
     this.shipTimeRepository = shipTimeRepository;
     this.shipRepository = shipRepository;
     this.voyageRepository = voyageRepository;
     this.visitorRepository = visitorRepository;
     this.applicationSettings = applicationSettings;
     this.alertRepository = alertRepository;
 }
        public void SetUp()
        {
            serviceTicketRepo = Substitute.For<IServiceTicketRepository>();
            messageRepo = Substitute.For<IMessageRepository>();
            alertRepo = Substitute.For<IAlertRepository>();
            scheduleItemRepo = Substitute.For<IScheduleItemRepository>();

            controller = new HomeController(
                serviceTicketRepo,
                messageRepo,
                alertRepo,
                scheduleItemRepo
            );
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertClientRepositoryTest" /> class.
 /// </summary>
 public AlertClientRepositoryTest()
 {
     Common.Dependencies.Register();
     DataAccess.Dependencies.Register();
     this.applicationSettings = new Mock<IApplicationSettings>();
     this.dashBoardClient = new Mock<IDashboardClient>();
     this.alertTypeClient = new Mock<IAlertTypeClient>();
     this.applicationSettings.Setup(mock => mock.PersonNotificationServiceBaseAddress).Returns("http://Localhost/");
     DIContainer.Instance.RegisterType<IAlertClient, FakeAlertClientRepository>();
     DIContainer.Instance.RegisterType<IMessageClient, FakeMessageClientRepository>();
     DIContainer.Instance.RegisterType<IMessageTemplatesClient, FakeMessageTemplateClientRepository>();
     DIContainer.Instance.RegisterType<IAlertTemplateClient, FakeAlertTemplateClientRepository>();
     DIContainer.Instance.RegisterInstance<IDashboardClient>(this.dashBoardClient.Object);
     DIContainer.Instance.RegisterInstance<IAlertTypeClient>(this.alertTypeClient.Object);
     this.alertClientRepository = new AlertClientRepository(this.applicationSettings.Object);
     SetupSearchRequest();
 }
示例#40
0
 public AlertManager(INotificationManager notificationManager, IAlertRepository alertRepo)
 {
     _notificationManager = notificationManager;
     _alertRepository = alertRepo;
 }
示例#41
0
        private void Init()
        {
            _userProfileDAO = new GenericDAO<UserProfile>();
               _gameStockConfig = new StockGameConfiguration();
               _orderDAO = new GenericDAO<Order>();
               _instrumentDAO = new GenericDAO<Instrument>();
               _instrumentHistoryDAO = new GenericDAO<InstrumentHistory>();
               _alertDAO = new GenericDAO<Alert>();
               _instrumentRepository = new InstrumentRepository(_instrumentDAO, _instrumentHistoryDAO);
               _orderRepository = new OrderRepository(_orderDAO,_instrumentDAO);
               _alertRepository = new AlertRepository(_alertDAO, _instrumentDAO);
               _ldapService = new FakeLdapService(_gameStockConfig);
               _ldapService.Init();

               _notificationtDAO = new GenericDAO<Notification>();
               _notificationRepository = new NotificationRepository(_notificationtDAO);
               _notificationManager = new NotificationManager(_notificationRepository);
               _alertManager = new AlertManager(_notificationManager, _alertRepository);
               _userManager = new UserManager(_userProfileDAO, _ldapService);

               _alertService = new AlertService(_orderRepository, _instrumentRepository, _alertRepository, _alertManager);
        }
示例#42
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertManager"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 public AlertManager(IAlertRepository repository)
 {
     this.alertRepository = repository;
 }
示例#43
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertData" /> class.
 /// </summary>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="embarkationStatisticsRepository">The embarkation statistics repository.</param>
 public AlertData(IAlertRepository alertRepository, IVisitorRepository visitorRepository, IGuestRepository guestRepository, ICrewRepository crewRepository, IShipRepository shipRepository, IShipTimeRepository shipTimeRepository, IApplicationSettings applicationSettings, IEmbarkationStatisticsRepository embarkationStatisticsRepository)
 {
     this.alertRepository = alertRepository;
     this.visitorRepository = visitorRepository;
     this.guestRepository = guestRepository;
     this.crewRepository = crewRepository;
     this.shipRepository = shipRepository;
     this.applicationSettings = applicationSettings;
     this.shipTimeRepository = shipTimeRepository;
     this.embarkationStatisticsRepository = embarkationStatisticsRepository;
 }