Exemplo n.º 1
0
 public SettingsController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IFaqsQuery faqsQuery, IUsersQuery usersQuery, ISettingsCommand settingsCommand, ISettingsQuery settingsQuery)
     : base(accountsManager, loginCredentialsQuery, faqsQuery)
 {
     _usersQuery      = usersQuery;
     _settingsCommand = settingsCommand;
     _settingsQuery   = settingsQuery;
 }
Exemplo n.º 2
0
        public EmailsCommand(
            ISettingsQuery settingsQuery,
            ISettingsCommand settingsCommand,
            ICommunicationEngine communicationEngine,
            ITemplateEngine templateEngine,
            IAffiliateEmailsQuery affiliateEmailsQuery,
            IUserEmailsQuery userEmailsQuery,
            string memberServicesAddress,
            string employerServicesAddress,
            string systemAddress,
            string returnAddress,
            string servicesDisplayName,
            string allStaffAddress,
            string allStaffDisplayName,
            string redStarResumeAddress,
            string redStarResumeDisplayName)
        {
            _settingsQuery        = settingsQuery;
            _settingsCommand      = settingsCommand;
            _communicationEngine  = communicationEngine;
            _templateEngine       = templateEngine;
            _affiliateEmailsQuery = affiliateEmailsQuery;
            _userEmailsQuery      = userEmailsQuery;

            _memberServicesUser   = new EmailUser(memberServicesAddress, servicesDisplayName, null);
            _employerServicesUser = new EmailUser(employerServicesAddress, servicesDisplayName, null);
            _systemUser           = new EmailUser(systemAddress, servicesDisplayName, null);
            _allStaffUser         = new EmailUser(allStaffAddress, allStaffDisplayName, null);
            _redStarResume        = new EmailUser(redStarResumeAddress, redStarResumeDisplayName, null);
            _returnUser           = new EmailUser(returnAddress, servicesDisplayName, null);
        }
Exemplo n.º 3
0
 public JoinController(IPageflowEngine pageflowEngine, IAccountsManager accountsManager, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand, IMembersQuery membersQuery, ICandidatesCommand candidatesCommand, ICandidatesQuery candidatesQuery, ICandidateResumesCommand candidateResumesCommand, IResumesQuery resumesQuery, IAffiliationItemsFactory affiliationItemsFactory, IMemberAffiliationsCommand memberAffiliationsCommand, IMemberAffiliationsQuery memberAffiliationsQuery, IMemberStatusQuery memberStatusQuery, IFilesQuery filesQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IReferralsCommand referralsCommand, IReferralsQuery referralsQuery, IMemberFriendsCommand memberFriendsCommand, IMemberFriendsQuery memberFriendsQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
     : base(Routes, pageflowEngine)
 {
     _membersQuery                = membersQuery;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
     _accountsManager             = accountsManager;
     _candidatesQuery             = candidatesQuery;
     _candidatesCommand           = candidatesCommand;
     _candidateResumesCommand     = candidateResumesCommand;
     _resumesQuery                = resumesQuery;
     _filesQuery = filesQuery;
     _affiliationItemsFactory   = affiliationItemsFactory;
     _memberAffiliationsCommand = memberAffiliationsCommand;
     _memberAffiliationsQuery   = memberAffiliationsQuery;
     _memberStatusQuery         = memberStatusQuery;
     _locationQuery             = locationQuery;
     _industriesQuery           = industriesQuery;
     _referralsCommand          = referralsCommand;
     _referralsQuery            = referralsQuery;
     _memberFriendsCommand      = memberFriendsCommand;
     _memberFriendsQuery        = memberFriendsQuery;
     _settingsQuery             = settingsQuery;
     _settingsCommand           = settingsCommand;
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 public SuggestedJobsCreatorTask(ICandidatesWorkflowQuery candidatesWorkflowQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
     : base(Logger)
 {
     _candidatesWorkflowQuery = candidatesWorkflowQuery;
     _settingsQuery           = settingsQuery;
     _settingsCommand         = settingsCommand;
     _categoryId = _settingsQuery.GetCategory("SuggestedJobs").Id;
 }
Exemplo n.º 6
0
 public SettingsController(IMemberAccountsCommand memberAccountsCommand, ILoginCredentialsQuery loginCredentialsQuery, IUserAccountsCommand userAccountsCommand, IAuthenticationManager authenticationManager, IAccountVerificationsCommand accountVerificationsCommand, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand, IVerticalsQuery verticalsQuery)
 {
     _memberAccountsCommand       = memberAccountsCommand;
     _loginCredentialsQuery       = loginCredentialsQuery;
     _userAccountsCommand         = userAccountsCommand;
     _authenticationManager       = authenticationManager;
     _accountVerificationsCommand = accountVerificationsCommand;
     _settingsQuery   = settingsQuery;
     _settingsCommand = settingsCommand;
     _verticalsQuery  = verticalsQuery;
 }
        public SuggestedJobsWorkflowSubscriber(IChannelManager <IService> proxyManager, ICandidatesQuery candidatesQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
        {
            _proxyManager    = proxyManager;
            _candidatesQuery = candidatesQuery;
            _settingsQuery   = settingsQuery;
            _settingsCommand = settingsCommand;

            Category category = _settingsQuery.GetCategory("SuggestedJobs");

            if (category == null)
            {
                throw new InvalidOperationException("The 'SuggestedJobs' category is not defined.");
            }

            _categoryId = category.Id;
        }
Exemplo n.º 8
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;
 }
Exemplo n.º 9
0
 public SettingsController(IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, IOrganisationsQuery organisationsQuery, IPhoneNumbersQuery phoneNumbersQuery, IIndustriesQuery industriesQuery, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, IAuthenticationManager authenticationManager, ICreditsQuery creditsQuery, IEmployerCreditsQuery employerCreditsQuery, IJobPostersCommand jobPostersCommand, IJobPostersQuery jobPostersQuery, INonMemberSettingsCommand nonMemberSettingsCommand, INonMemberSettingsQuery nonMemberSettingsQuery, ISettingsCommand settingsCommand, ISettingsQuery settingsQuery, ILinkedInCommand linkedInCommand, ILinkedInQuery linkedInQuery)
 {
     _employerAccountsCommand  = employerAccountsCommand;
     _authenticationManager    = authenticationManager;
     _creditsQuery             = creditsQuery;
     _employerCreditsQuery     = employerCreditsQuery;
     _jobPostersQuery          = jobPostersQuery;
     _nonMemberSettingsQuery   = nonMemberSettingsQuery;
     _settingsQuery            = settingsQuery;
     _linkedInQuery            = linkedInQuery;
     _linkedInCommand          = linkedInCommand;
     _nonMemberSettingsCommand = nonMemberSettingsCommand;
     _jobPostersCommand        = jobPostersCommand;
     _settingsCommand          = settingsCommand;
     _loginCredentialsCommand  = loginCredentialsCommand;
     _loginCredentialsQuery    = loginCredentialsQuery;
     _industriesQuery          = industriesQuery;
     _phoneNumbersQuery        = phoneNumbersQuery;
     _organisationsCommand     = organisationsCommand;
     _organisationsQuery       = organisationsQuery;
 }
Exemplo n.º 10
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;
 }
Exemplo n.º 11
0
        public RaidDispatcher(
            IStartCommand startGroupCommand,
            // IConfigureUserCommand startPrivatCommand,
            IHelpCommand helpCommand,
            ICancelCommand cancelCommand,
            IPollAnswer raidPollAnswer,
            ISettingsCommand settingsCommand,
            // ICreateRaidCommand createRaidCommand,
            IIvCommand ivCommand,
            IPokeCommand pokeCommand,
            IGymsCommand gymsCommand,
            MemberRemoved memberRemoved,
            MembersAdded memberAdded,
            IOwnerCommand ownerCommand,
            IUpdateRaidBossCommand updateRaidBossCommand
            )
        {
            this.commands.Add(startGroupCommand);
            // this.commands.Add(startPrivatCommand);
            this.commands.Add(helpCommand);
            this.commands.Add(cancelCommand);

            this.answers.Add(raidPollAnswer);
            this.commands.Add(settingsCommand);
            // this.commands.Add(createRaidCommand);
            this.commands.Add(ivCommand);
            this.commands.Add(gymsCommand);
            this.commands.Add(pokeCommand);
            this.commands.Add(ownerCommand);
            this.commands.Add(updateRaidBossCommand);


            this.memberAdded   = memberAdded;
            this.memberRemoved = memberRemoved;

            helpCommand.RegisterAllCommands(this.commands.Select(x => x.Value).ToList());
        }