Ejemplo n.º 1
0
 public ExpiringDraftApplicationAlertCommunicationHousekeeper(
     IConfigurationService configurationService,
     IExpiringApprenticeshipApplicationDraftRepository expiringApprenticeshipApplicationDraftRepository)
 {
     _configurationService = configurationService;
     _expiringApprenticeshipApplicationDraftRepository = expiringApprenticeshipApplicationDraftRepository;
 }
 public VacancyAboutToExpireConsumerAsync(
     IApprenticeshipApplicationReadRepository apprenticeshipApplicationReadRepository,
     IExpiringApprenticeshipApplicationDraftRepository expiringDraftRepository,
     IMapper mapper)
 {
     _apprenticeshipApplicationReadRepository = apprenticeshipApplicationReadRepository;
     _expiringDraftRepository = expiringDraftRepository;
     _mapper = mapper;
 }
        public void SetUp()
        {
            _expiringDraftRepository = Container.GetInstance <IExpiringApprenticeshipApplicationDraftRepository>();

            var mongoConnectionString = MongoConfiguration.CommunicationsDb;
            var mongoDbName           = MongoUrl.Create(mongoConnectionString).DatabaseName;

            _database = new MongoClient(mongoConnectionString)
                        .GetServer()
                        .GetDatabase(mongoDbName);
            _collection = _database.GetCollection <MongoApprenticeshipApplicationExpiringDraft>("expiringdraftapplications");
            _collection.Remove(Query.EQ("VacancyId", TestVacancyId));
        }
Ejemplo n.º 4
0
 public SendDailyDigestsStrategy(
     ILogService logService,
     IServiceBus serviceBus,
     IExpiringApprenticeshipApplicationDraftRepository expiringDraftRepository,
     IApplicationStatusAlertRepository applicationStatusAlertRepository,
     ICandidateReadRepository candidateReadRepository,
     IUserReadRepository userReadRepository)
 {
     _logService = logService;
     _serviceBus = serviceBus;
     _expiringDraftRepository          = expiringDraftRepository;
     _applicationStatusAlertRepository = applicationStatusAlertRepository;
     _candidateReadRepository          = candidateReadRepository;
     _userReadRepository = userReadRepository;
 }
Ejemplo n.º 5
0
 public CommunicationProcessor(IExpiringApprenticeshipApplicationDraftRepository expiringDraftRepository, ICandidateReadRepository candidateReadRepository, IMessageBus bus)
 {
     _expiringDraftRepository = expiringDraftRepository;
     _candidateReadRepository = candidateReadRepository;
     _bus = bus;
 }