Ejemplo n.º 1
0
 public OrdersHandler(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery)
 {
     _emailsCommand  = emailsCommand;
     _employersQuery = employersQuery;
     _creditsQuery   = creditsQuery;
     _productsQuery  = productsQuery;
 }
Ejemplo n.º 2
0
        public Service(
            IDbConnectionFactory connectionFactory,
            ICandidatesWorkflowCommand candidatesWorkflowCommand,
            ICandidatesCommand candidatesCommand,
            IMembersQuery membersQuery,
            IEmailsCommand emailsCommand)
            : base(connectionFactory)
        {
            for (int i = 0; i < _locks.Length; i++)
            {
                _locks[i] = new object();
            }

            _membersQuery              = membersQuery;
            _emailsCommand             = emailsCommand;
            _candidatesWorkflowCommand = candidatesWorkflowCommand;
            _candidatesCommand         = candidatesCommand;

            ActivelyLookingConfirmationTimeout   = TimeSpan.FromDays(30);
            ActivelyLookingResponseTimeout       = TimeSpan.FromDays(7);
            AvailableNowConfirmationLongTimeout  = TimeSpan.FromDays(30);
            AvailableNowConfirmationShortTimeout = TimeSpan.FromDays(7);
            AvailableNowResponseLongTimeout      = TimeSpan.FromDays(7);
            AvailableNowResponseShortTimeout     = TimeSpan.FromDays(7);
        }
Ejemplo n.º 3
0
 public EmailEmployerUsageTask(IEmailsCommand emailsCommand, IResumeReportsQuery resumeReportsQuery, IAccountReportsQuery accountReportsQuery, IEmployersQuery employersQuery)
     : base(EventSource, emailsCommand)
 {
     _resumeReportsQuery  = resumeReportsQuery;
     _accountReportsQuery = accountReportsQuery;
     _employersQuery      = employersQuery;
 }
Ejemplo n.º 4
0
 public EmailResumeSearchAlertsTask(IExecuteMemberSearchCommand executeMemberSearchCommand, IMemberSearchesQuery memberSearchesQuery, IMemberSearchAlertsCommand memberSearchAlertsCommand, IMemberSearchAlertsQuery memberSearchAlertsQuery, IEmployersQuery employersQuery, IEmailsCommand emailsCommand, IIndustriesQuery industriesQuery, IEmployerMemberViewsQuery employerMemberViewsQuery)
     : base(executeMemberSearchCommand, memberSearchesQuery, memberSearchAlertsCommand, memberSearchAlertsQuery, employersQuery, AlertType.Email)
 {
     _emailsCommand            = emailsCommand;
     _industriesQuery          = industriesQuery;
     _employerMemberViewsQuery = employerMemberViewsQuery;
 }
Ejemplo n.º 5
0
 public JobAdsApiController(IJobAdsQuery jobAdsQuery, IJobAdViewsCommand jobAdViewsCommand, IApplicationsCommand applicationsCommand, IVisitorStatusQuery visitorStatusQuery, IEmailsCommand emailsCommand)
 {
     _jobAdsQuery         = jobAdsQuery;
     _jobAdViewsCommand   = jobAdViewsCommand;
     _applicationsCommand = applicationsCommand;
     _visitorStatusQuery  = visitorStatusQuery;
     _emailsCommand       = emailsCommand;
 }
Ejemplo n.º 6
0
 public DataExchange(TimeSpan[] delays, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand, ICandidatesWorkflowCommand workflowCommand)
 {
     _delays                  = delays;
     _membersQuery            = membersQuery;
     _emailVerificationsQuery = emailVerificationsQuery;
     _emailsCommand           = emailsCommand;
     _workflowCommand         = workflowCommand;
 }
Ejemplo n.º 7
0
 public CampaignEmailsCommand(ICampaignsQuery campaignsQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand, IEmailsCommand emailsCommand, string returnAddress, string returnDisplayName)
 {
     _campaignsQuery  = campaignsQuery;
     _settingsQuery   = settingsQuery;
     _settingsCommand = settingsCommand;
     _emailsCommand   = emailsCommand;
     _from            = new EmailUser(returnAddress, returnDisplayName, null);
 }
Ejemplo n.º 8
0
 public EmailMemberNewsletterTask(IEmailsCommand emailsCommand, ISettingsQuery settingsQuery, IMemberCommunicationsQuery memberCommunicationsQuery, IMembersQuery membersQuery)
     : base(EventSource, emailsCommand)
 {
     _settingsQuery             = settingsQuery;
     _definition                = _settingsQuery.GetDefinition(typeof(MemberNewsletterEmail).Name);
     _memberCommunicationsQuery = memberCommunicationsQuery;
     _membersQuery              = membersQuery;
 }
Ejemplo n.º 9
0
 public EmailEmployerNewsletterTask(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IUserAccountsQuery userAccountsQuery, IAllocationsQuery allocationsQuery, IRecruitersQuery recruitersQuery)
     : base(EventSource, emailsCommand)
 {
     _employersQuery    = employersQuery;
     _userAccountsQuery = userAccountsQuery;
     _allocationsQuery  = allocationsQuery;
     _recruitersQuery   = recruitersQuery;
 }
Ejemplo n.º 10
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _emailServer = EmailHost.Start();
            _emailServer.ClearEmails();

            _emailsCommand = Resolve <IEmailsCommand>();
        }
Ejemplo n.º 11
0
 public MessagesHandler(IEmailsCommand emailsCommand, IMembersQuery membersQuery, IEmployersQuery employersQuery, IEmployerMemberViewsQuery employerMemberViewsQuery, IEmployerMemberContactsQuery employerMemberContactsQuery, IFilesQuery filesQuery)
 {
     _emailsCommand               = emailsCommand;
     _membersQuery                = membersQuery;
     _employersQuery              = employersQuery;
     _employerMemberViewsQuery    = employerMemberViewsQuery;
     _employerMemberContactsQuery = employerMemberContactsQuery;
     _filesQuery = filesQuery;
 }
Ejemplo n.º 12
0
 public ExpiringCreditsEmailTask(IEmailsCommand emailsCommand, IEmployerCreditsQuery employerCreditsQuery, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IRecruitersQuery recruitersQuery, IAdministratorsQuery administratorsQuery)
     : base(EventSource, emailsCommand)
 {
     _employerCreditsQuery = employerCreditsQuery;
     _employersQuery       = employersQuery;
     _organisationsQuery   = organisationsQuery;
     _recruitersQuery      = recruitersQuery;
     _administratorsQuery  = administratorsQuery;
 }
Ejemplo n.º 13
0
 public MaintainMembersController(IUserAccountsCommand userAccountsCommand, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IMembersQuery membersQuery, IAdministrativeMemberSearchCommand administrativeMemberSearchCommand, IEmailsCommand emailsCommand)
 {
     _userAccountsCommand               = userAccountsCommand;
     _loginCredentialsCommand           = loginCredentialsCommand;
     _loginCredentialsQuery             = loginCredentialsQuery;
     _membersQuery                      = membersQuery;
     _administrativeMemberSearchCommand = administrativeMemberSearchCommand;
     _emailsCommand                     = emailsCommand;
 }
Ejemplo n.º 14
0
 public CandidatesApiController(IEmployerMemberViewsCommand employerMemberViewsCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IEmployerMemberContactsCommand employerMemberContactsCommand, IEmployerResumeFilesQuery employerResumeFilesQuery, IEmailsCommand emailsCommand, IJobAdApplicantsQuery jobAdApplicantsQuery)
 {
     _employerMemberViewsCommand    = employerMemberViewsCommand;
     _employerMemberViewsQuery      = employerMemberViewsQuery;
     _employerMemberContactsCommand = employerMemberContactsCommand;
     _employerResumeFilesQuery      = employerResumeFilesQuery;
     _emailsCommand        = emailsCommand;
     _jobAdApplicantsQuery = jobAdApplicantsQuery;
 }
Ejemplo n.º 15
0
 public AccountVerificationsCommand(IMembersQuery membersQuery, IUserAccountsCommand userAccountsCommand, IEmailVerificationsCommand emailVerificationsCommand, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand, IChannelManager <IService> activationEmailManager)
 {
     _membersQuery              = membersQuery;
     _userAccountsCommand       = userAccountsCommand;
     _emailVerificationsCommand = emailVerificationsCommand;
     _emailVerificationsQuery   = emailVerificationsQuery;
     _emailsCommand             = emailsCommand;
     _activationEmailManager    = activationEmailManager;
 }
Ejemplo n.º 16
0
        public Service(IDbConnectionFactory connectionFactory, ICandidatesWorkflowCommand workflowCommand, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand)
            : base(connectionFactory)
        {
            _workflowCommand         = workflowCommand;
            _membersQuery            = membersQuery;
            _emailVerificationsQuery = emailVerificationsQuery;
            _emailsCommand           = emailsCommand;

            Delays = DefaultDelays;
        }
Ejemplo n.º 17
0
 public EmailCustomerReportsTask(IEmailsCommand emailsCommand, IEmployerReportsQuery employerReportsQuery, IEmployerReportsCommand employerReportsCommand, IExecuteEmployerReportsCommand executeEmployerReportsCommand, IOrganisationsQuery organisationsQuery, IAdministratorsQuery administratorsQuery, IAccountReportsQuery accountReportsQuery)
     : base(EventSource, emailsCommand)
 {
     _employerReportsQuery          = employerReportsQuery;
     _employerReportsCommand        = employerReportsCommand;
     _executeEmployerReportsCommand = executeEmployerReportsCommand;
     _organisationsQuery            = organisationsQuery;
     _administratorsQuery           = administratorsQuery;
     _accountReportsQuery           = accountReportsQuery;
 }
Ejemplo n.º 18
0
        public Worker(ICandidatesWorkflowCommand workflowCommand, IExecuteJobAdSearchCommand searchCommand, IJobAdsQuery jobAdsQuery, IEmailsCommand emailsCommand, IMembersQuery membersQuery, IUserAccountsQuery userAccountsQuery)
        {
            _workflowCommand    = workflowCommand;
            _jobAdSearchCommand = searchCommand;
            _jobAdsQuery        = jobAdsQuery;
            _emailsCommand      = emailsCommand;
            _membersQuery       = membersQuery;
            _userAccountsQuery  = userAccountsQuery;

            MaxResults = 10; // default
        }
Ejemplo n.º 19
0
 public EmailSuggestedCandidatesTask(IEmailsCommand emailsCommand, IJobAdsQuery jobAdsQuery, ISuggestedMembersQuery suggestedMembersQuery, IEmployersQuery employersQuery, IEmployerMemberViewsQuery employerMemberViewsQuery, IEmployerCreditsQuery employerCreditsQuery, IMemberSearchesCommand memberSearchesCommand, IExecuteMemberSearchCommand executeMemberSearchCommand)
     : base(EventSource, emailsCommand)
 {
     _jobAdsQuery                = jobAdsQuery;
     _suggestedMembersQuery      = suggestedMembersQuery;
     _employersQuery             = employersQuery;
     _employerMemberViewsQuery   = employerMemberViewsQuery;
     _employerCreditsQuery       = employerCreditsQuery;
     _memberSearchesCommand      = memberSearchesCommand;
     _executeMemberSearchCommand = executeMemberSearchCommand;
 }
Ejemplo n.º 20
0
 public FriendsHandler(IEmailsCommand emailsCommand, IMembersQuery membersQuery, IMemberContactsQuery memberContactsQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IDonationsQuery donationsQuery, IEmailVerificationsCommand emailVerificationsCommand, IEmailVerificationsQuery emailVerificationsQuery)
 {
     _emailsCommand             = emailsCommand;
     _membersQuery              = membersQuery;
     _memberContactsQuery       = memberContactsQuery;
     _candidatesQuery           = candidatesQuery;
     _resumesQuery              = resumesQuery;
     _donationsQuery            = donationsQuery;
     _emailVerificationsCommand = emailVerificationsCommand;
     _emailVerificationsQuery   = emailVerificationsQuery;
 }
Ejemplo n.º 21
0
 public EmailJobSearchAlertsTask(IEmailsCommand emailsCommand, IJobAdsQuery jobAdsQuery, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdSearchAlertsCommand jobAdSearchAlertsCommand, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery, IJobAdSearchesQuery jobAdSearchesQuery, IMembersQuery membersQuery, IAnonymousUsersQuery anonymousUsersQuery)
     : base(EventSource, emailsCommand)
 {
     _jobAdsQuery = jobAdsQuery;
     _executeJobAdSearchCommand = executeJobAdSearchCommand;
     _jobAdSearchAlertsCommand  = jobAdSearchAlertsCommand;
     _jobAdSearchAlertsQuery    = jobAdSearchAlertsQuery;
     _jobAdSearchesQuery        = jobAdSearchesQuery;
     _membersQuery        = membersQuery;
     _anonymousUsersQuery = anonymousUsersQuery;
 }
Ejemplo n.º 22
0
 public JobAdsHandler(IMemberApplicationsQuery memberApplicationsQuery, IJobAdsQuery jobAdsQuery, IJobAdProcessingQuery jobAdProcessingQuery, IMembersQuery membersQuery, IEmployersQuery employersQuery, IEmployerMemberViewsQuery employerMemberViewsQuery, IResumesQuery resumesQuery, IResumeFilesQuery resumeFilesQuery, IFilesQuery filesQuery, IEmailsCommand emailsCommand)
 {
     _memberApplicationsQuery  = memberApplicationsQuery;
     _jobAdsQuery              = jobAdsQuery;
     _jobAdProcessingQuery     = jobAdProcessingQuery;
     _membersQuery             = membersQuery;
     _employersQuery           = employersQuery;
     _employerMemberViewsQuery = employerMemberViewsQuery;
     _resumesQuery             = resumesQuery;
     _resumeFilesQuery         = resumeFilesQuery;
     _filesQuery    = filesQuery;
     _emailsCommand = emailsCommand;
 }
Ejemplo n.º 23
0
 public MaintainEmployersController(IUserAccountsCommand userAccountsCommand, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IEmployerAccountsCommand employerAccountsCommand, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IPhoneNumbersQuery phoneNumbersQuery, IExecuteEmployerSearchCommand executeEmployerSearchCommand, IEmailsCommand emailsCommand, IAccountReportsQuery accountReportsQuery)
 {
     _userAccountsCommand          = userAccountsCommand;
     _loginCredentialsCommand      = loginCredentialsCommand;
     _loginCredentialsQuery        = loginCredentialsQuery;
     _employerAccountsCommand      = employerAccountsCommand;
     _employersQuery               = employersQuery;
     _organisationsQuery           = organisationsQuery;
     _phoneNumbersQuery            = phoneNumbersQuery;
     _executeEmployerSearchCommand = executeEmployerSearchCommand;
     _emailsCommand       = emailsCommand;
     _accountReportsQuery = accountReportsQuery;
 }
Ejemplo n.º 24
0
 public CreditsHandler(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IRecruitersQuery recruitersQuery, IAdministratorsQuery administratorsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery)
 {
     _emailsCommand       = emailsCommand;
     _employersQuery      = employersQuery;
     _organisationsQuery  = organisationsQuery;
     _recruitersQuery     = recruitersQuery;
     _administratorsQuery = administratorsQuery;
     _allocationsCommand  = allocationsCommand;
     _allocationsQuery    = allocationsQuery;
     _creditsQuery        = creditsQuery;
     _jobAdsCommand       = jobAdsCommand;
     _jobAdsQuery         = jobAdsQuery;
 }
Ejemplo n.º 25
0
        public static void ClassInitialize(TestContext context)
        {
            if (RuntimeEnvironment.Environment == ApplicationEnvironment.Dev)
            {
                Assert.Inconclusive("Must be run manually in UAT.");
            }

            Container.Push();
            var smtpHost   = Resolve <string>("linkme.communications.smtp.server");
            var smtpServer = new SmtpEmailClient(smtpHost);

            Container.Current.RegisterInstance <IEmailClient>(smtpServer);

            _emailsCommand = Resolve <IEmailsCommand>();
            _memberUser    = Resolve <IMembersQuery>().GetMember(MemberId);
            _employerUser  = Resolve <IEmployersQuery>().GetEmployer(EmployerId);
        }
Ejemplo n.º 26
0
 public OrganisationsController(IOrganisationsCommand organisationsCommand, IOrganisationsQuery organisationsQuery, ILoginCredentialsQuery loginCredentialsQuery, IAdministratorsQuery administratorsQuery, IEmployerAccountsCommand employerAccountsCommand, IEmployersQuery employersQuery, IExecuteOrganisationSearchCommand executeOrganisationSearchCommand, ICommunitiesQuery communitiesQuery, IIndustriesQuery industriesQuery, IPhoneNumbersQuery phoneNumbersQuery, ILocationQuery locationQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand, IEmailsCommand emailsCommand, IAccountReportsQuery accountReportsQuery)
 {
     _organisationsCommand             = organisationsCommand;
     _organisationsQuery               = organisationsQuery;
     _loginCredentialsQuery            = loginCredentialsQuery;
     _administratorsQuery              = administratorsQuery;
     _employerAccountsCommand          = employerAccountsCommand;
     _employersQuery                   = employersQuery;
     _executeOrganisationSearchCommand = executeOrganisationSearchCommand;
     _communitiesQuery                 = communitiesQuery;
     _industriesQuery                  = industriesQuery;
     _phoneNumbersQuery                = phoneNumbersQuery;
     _locationQuery       = locationQuery;
     _settingsQuery       = settingsQuery;
     _settingsCommand     = settingsCommand;
     _emailsCommand       = emailsCommand;
     _accountReportsQuery = accountReportsQuery;
 }
Ejemplo n.º 27
0
 public ProfilesApiController(ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IResumesQuery resumesQuery, ICandidatesQuery candidatesQuery, IResumeFilesQuery resumeFilesQuery, IMemberStatusQuery memberStatusQuery, IEmailsCommand emailsCommand, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand, ICandidatesCommand candidatesCommand, ICandidateResumesCommand candidateResumesCommand, ICandidateResumeFilesCommand candidateResumeFilesCommand, IParseResumesCommand parseResumesCommand, IMemberPhotosCommand memberPhotosCommand, IFilesCommand filesCommand, IFilesQuery filesQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
 {
     _locationQuery               = locationQuery;
     _industriesQuery             = industriesQuery;
     _resumesQuery                = resumesQuery;
     _candidatesQuery             = candidatesQuery;
     _resumeFilesQuery            = resumeFilesQuery;
     _memberStatusQuery           = memberStatusQuery;
     _emailsCommand               = emailsCommand;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
     _candidatesCommand           = candidatesCommand;
     _candidateResumesCommand     = candidateResumesCommand;
     _candidateResumeFilesCommand = candidateResumeFilesCommand;
     _parseResumesCommand         = parseResumesCommand;
     _memberPhotosCommand         = memberPhotosCommand;
     _filesCommand                = filesCommand;
     _filesQuery      = filesQuery;
     _settingsQuery   = settingsQuery;
     _settingsCommand = settingsCommand;
 }
Ejemplo n.º 28
0
        public DataExchange(
            ICandidatesWorkflowCommand candidatesWorkflowCommand,
            ICandidatesCommand candidatesCommand,
            IMembersQuery membersQuery,
            IEmailsCommand emailsCommand,
            TimeSpan activelyLookingConfirmationTimeout,
            TimeSpan activelyLookingResponseTimeout,
            TimeSpan availableNowConfirmationLongTimeout,
            TimeSpan availableNowConfirmationShortTimeout,
            TimeSpan availableNowResponseLongTimeout,
            TimeSpan availableNowResponseShortTimeout)
        {
            _candidatesWorkflowCommand = candidatesWorkflowCommand;
            _candidatesCommand         = candidatesCommand;
            _membersQuery  = membersQuery;
            _emailsCommand = emailsCommand;

            _activelyLookingConfirmationTimeout   = activelyLookingConfirmationTimeout;
            _activelyLookingResponseTimeout       = activelyLookingResponseTimeout;
            _availableNowConfirmationLongTimeout  = availableNowConfirmationLongTimeout;
            _availableNowConfirmationShortTimeout = availableNowConfirmationShortTimeout;
            _availableNowResponseLongTimeout      = availableNowResponseLongTimeout;
            _availableNowResponseShortTimeout     = availableNowResponseShortTimeout;
        }
Ejemplo n.º 29
0
 public AffiliationsHandler(IEmailsCommand emailsCommand, ICommunitiesQuery communitiesQuery)
 {
     _emailsCommand    = emailsCommand;
     _communitiesQuery = communitiesQuery;
 }
Ejemplo n.º 30
0
 public PartnersEmailSubscriber(IEmailsCommand emailsCommand, IResourcesQuery resourcesQuery, IMembersQuery membersQuery)
 {
     _emailsCommand  = emailsCommand;
     _resourcesQuery = resourcesQuery;
     _membersQuery   = membersQuery;
 }