コード例 #1
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;
 }
コード例 #2
0
 public JobAdController(IEmployerJobAdsCommand employerJobAdsCommand, IAnonymousJobAdsCommand anonymousJobAdsCommand, IEmployerLogosCommand employerLogosCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobPostersQuery jobPostersQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IEmployerAllocationsCommand employerAllocationsCommand, IEmployerCreditsQuery employerCreditsQuery, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager)
 {
     _employerJobAdsCommand      = employerJobAdsCommand;
     _anonymousJobAdsCommand     = anonymousJobAdsCommand;
     _employerLogosCommand       = employerLogosCommand;
     _jobAdsCommand              = jobAdsCommand;
     _jobAdsQuery                = jobAdsQuery;
     _jobPostersQuery            = jobPostersQuery;
     _memberJobAdViewsQuery      = memberJobAdViewsQuery;
     _creditsQuery               = creditsQuery;
     _productsQuery              = productsQuery;
     _couponsQuery               = couponsQuery;
     _ordersCommand              = ordersCommand;
     _ordersQuery                = ordersQuery;
     _employerAllocationsCommand = employerAllocationsCommand;
     _employerCreditsQuery       = employerCreditsQuery;
     _employerOrdersCommand      = employerOrdersCommand;
     _employerOrdersQuery        = employerOrdersQuery;
     _locationQuery              = locationQuery;
     _industriesQuery            = industriesQuery;
     _accountsManager            = accountsManager;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
 }
コード例 #3
0
 public JobAdMapper(ILocationQuery locationQuery, IIndustriesQuery industriesQuery, string[] ignoredCompanies)
 {
     _locationQuery    = locationQuery;
     _ignoredCompanies = ignoredCompanies;
     _australia        = _locationQuery.GetCountry("Australia");
     _industryMap      = CreateIndustryMap(industriesQuery);
 }
コード例 #4
0
        public static JobAd Map(this JobAdEntity entity, ILocationQuery locationQuery, IIndustriesQuery industriesQuery)
        {
            var jobAd = entity.MapTo <JobAd>();

            entity.MapTo(jobAd.Description, locationQuery, industriesQuery);
            return(jobAd);
        }
コード例 #5
0
 public JobAdsPollerTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, ICareerOneQuery careerOneQuery)
     : base(jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand, jobAdIntegrationReportsCommand, Logger)
 {
     _locationQuery       = locationQuery;
     _industriesQuery     = industriesQuery;
     _externalJobAdsQuery = externalJobAdsQuery;
     _careerOneQuery      = careerOneQuery;
 }
コード例 #6
0
 public PurchasesCommand(ISendSecurePayCommand sendSecurePayCommand, ILocationQuery locationQuery, bool useAntiFraud, string merchantId, string password, string antiFraudMerchantId, string antiFraudPassword, string country)
 {
     _sendSecurePayCommand = sendSecurePayCommand;
     _useAntiFraud         = useAntiFraud;
     _merchantId           = _useAntiFraud ? antiFraudMerchantId : merchantId;
     _password             = _useAntiFraud ? antiFraudPassword : password;
     _country = locationQuery.GetCountry(country);
 }
コード例 #7
0
ファイル: Global.asax.cs プロジェクト: formist/LinkMe
 private void InitialiseContext(ILocationQuery locationQuery, IChannelsQuery channelsQuery)
 {
     _eventSource.Raise(Event.Information, "InitialiseContext", "Initializing context...");
     ActivityContext.Current.Register(new SessionVerticalContext());
     ActivityContext.Current.Register(new SessionCommunityContext());
     ActivityContext.Current.Register(new HttpContextLocationContext(locationQuery.GetCountry("Australia")));
     ActivityContext.Current.Register(new ChannelContext(channelsQuery.GetChannelApp(channelsQuery.GetChannel("Web").Id, "Web")));
 }
コード例 #8
0
 public CommunitiesController(ICommunitiesQuery communitiesQuery, ICustodianAccountsCommand custodianAccountsCommand, ICustodiansQuery custodiansQuery, IVerticalsCommand verticalsCommand, ILocationQuery locationQuery)
 {
     _communitiesQuery         = communitiesQuery;
     _custodianAccountsCommand = custodianAccountsCommand;
     _custodiansQuery          = custodiansQuery;
     _verticalsCommand         = verticalsCommand;
     _locationQuery            = locationQuery;
 }
コード例 #9
0
        public static IUrlNamedLocation GetLocationByUrlSegment(this ILocationQuery locationQuery, Country country, string segment, string suffix)
        {
            var locationUrlName = GetUrlName(segment, suffix);

            return(locationUrlName != null
                ? locationQuery.ResolveUrlNamedLocation(country, locationUrlName)
                : null);
        }
コード例 #10
0
ファイル: JobFeedReaderTask.cs プロジェクト: formist/LinkMe
 public JobFeedReaderTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, IIntegrationQuery integrationQuery, IIndustriesQuery industriesQuery, ILocationQuery locationQuery)
     : base(jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand, jobAdIntegrationReportsCommand, Logger)
 {
     _externalJobAdsQuery  = externalJobAdsQuery;
     _integrationQuery     = integrationQuery;
     _industriesQuery      = industriesQuery;
     _locationQuery        = locationQuery;
     IntegratorUserLoginId = "PageUpPeople";
 }
コード例 #11
0
 public HomeController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IFaqsQuery faqsQuery, IIndustriesQuery industriesQuery, ICacheManager cacheManager, int featuredItems, ILocationQuery locationQuery, IResourcesQuery resourcesQuery)
     : base(accountsManager, loginCredentialsQuery, faqsQuery)
 {
     _industriesQuery = industriesQuery;
     _cacheManager    = cacheManager;
     _featuredItems   = featuredItems;
     _locationQuery   = locationQuery;
     _resourcesQuery  = resourcesQuery;
 }
コード例 #12
0
ファイル: ProfilesController.cs プロジェクト: formist/LinkMe
 public ProfilesController(ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IResumesQuery resumesQuery, ICandidatesQuery candidatesQuery, IMemberStatusQuery memberStatusQuery, IVerticalsQuery verticalsQuery, ISettingsQuery settingsQuery)
 {
     _locationQuery     = locationQuery;
     _industriesQuery   = industriesQuery;
     _resumesQuery      = resumesQuery;
     _candidatesQuery   = candidatesQuery;
     _memberStatusQuery = memberStatusQuery;
     _verticalsQuery    = verticalsQuery;
     _settingsQuery     = settingsQuery;
 }
コード例 #13
0
 public SearchController(IJobAdFoldersCommand jobAdFoldersCommand, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdSearchesCommand jobAdSearchesCommand, IJobAdSearchesQuery jobAdSearchesQuery, IJobAdsQuery jobAdsQuery, ILocationQuery locationQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IIndustriesQuery industriesQuery, IJobAdFoldersQuery jobAdFoldersQuery, IJobAdFlagListsQuery jobAdFlagListsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdProcessingQuery jobAdProcessingQuery, IJobAdBlockListsQuery jobAdBlockListsQuery, IEmployersQuery employersQuery)
     : base(executeJobAdSearchCommand, jobAdsQuery, jobAdFlagListsQuery, memberJobAdViewsQuery, jobAdProcessingQuery, jobAdFoldersQuery, jobAdFoldersCommand, jobAdBlockListsQuery, employersQuery)
 {
     _jobAdSearchesCommand = jobAdSearchesCommand;
     _jobAdSearchesQuery   = jobAdSearchesQuery;
     _locationQuery        = locationQuery;
     _communitiesQuery     = communitiesQuery;
     _verticalsQuery       = verticalsQuery;
     _industriesQuery      = industriesQuery;
 }
コード例 #14
0
 public SuggestedCandidatesController(IExecuteMemberSearchCommand executeMemberSearchCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IMemberStatusQuery memberStatusQuery, IJobAdsQuery jobAdsQuery, IExternalJobAdsQuery externalJobAdsQuery, ISuggestedMembersQuery suggestedMembersQuery, ILocationQuery locationQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IIndustriesQuery industriesQuery)
     : base(executeMemberSearchCommand, employerMemberViewsQuery, memberStatusQuery)
 {
     _jobAdsQuery           = jobAdsQuery;
     _externalJobAdsQuery   = externalJobAdsQuery;
     _suggestedMembersQuery = suggestedMembersQuery;
     _locationQuery         = locationQuery;
     _communitiesQuery      = communitiesQuery;
     _verticalsQuery        = verticalsQuery;
     _industriesQuery       = industriesQuery;
 }
コード例 #15
0
 public static LocationReference Map(this ILocationReferenceEntity entity, ILocationQuery locationQuery)
 {
     return(new LocationReference(
                entity.unstructuredLocation,
                entity.namedLocationId == null ? null : locationQuery.GetNamedLocation(entity.namedLocationId.Value),
                locationQuery.GetCountrySubdivision(entity.countrySubdivisionId),
                entity.localityId == null ? null : locationQuery.GetLocality(entity.localityId.Value))
     {
         Id = entity.id
     });
 }
コード例 #16
0
ファイル: LocationMapper.cs プロジェクト: formist/LinkMe
        private void Add(ILocationQuery locationQuery, Country australia,
                         string capitalName, string stateName, string capitalId, string regionalId)
        {
            var capital = _world.GetPointSet(locationQuery.GetRegion(australia, capitalName));

            _mappings.Add(new KeyValuePair <HashSet <int>, string>(capital, capitalId));

            var state = _world.GetPointSet(locationQuery.GetCountrySubdivision(australia, stateName));

            _mappings.Add(new KeyValuePair <HashSet <int>, string>(
                              new HashSet <int>(state.Except(capital)), regionalId));
        }
コード例 #17
0
 public JobAdApplicationsManager(IJobAdsCommand jobAdsCommand, IApplicationsCommand applicationsCommand, IMemberApplicationsQuery memberApplicationsQuery, IMembersQuery membersQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IEmployerResumeFilesQuery employerResumeFilesQuery, IAnonymousUsersQuery anonymousUsersQuery, IFilesQuery filesQuery, ILocationQuery locationQuery)
 {
     _jobAdsCommand            = jobAdsCommand;
     _applicationsCommand      = applicationsCommand;
     _memberApplicationsQuery  = memberApplicationsQuery;
     _membersQuery             = membersQuery;
     _candidatesQuery          = candidatesQuery;
     _resumesQuery             = resumesQuery;
     _employerResumeFilesQuery = employerResumeFilesQuery;
     _anonymousUsersQuery      = anonymousUsersQuery;
     _filesQuery    = filesQuery;
     _locationQuery = locationQuery;
 }
コード例 #18
0
 public JobAdsController(IEmployerJobAdsCommand employerJobAdsCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IEmployersQuery employersQuery, IEmployerCreditsQuery employerCreditsQuery, ILoginCredentialsQuery loginCredentialsQuery, IIndustriesQuery industriesQuery, ILocationQuery locationQuery, IServiceAuthenticationManager serviceAuthenticationManager, IJobAdSearchesQuery jobAdSearchesQuery, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand)
 {
     _jobAdFeedsManager              = new JobAdFeedsManager(memberJobAdViewsQuery, jobAdIntegrationQuery, employersQuery, employerCreditsQuery, executeJobAdSearchCommand);
     _jobAdPostsManager              = new JobAdPostsManager(employerJobAdsCommand, jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand);
     _employersQuery                 = employersQuery;
     _externalJobAdsQuery            = externalJobAdsQuery;
     _loginCredentialsQuery          = loginCredentialsQuery;
     _jobAdIntegrationReportsCommand = jobAdIntegrationReportsCommand;
     _industriesQuery                = industriesQuery;
     _serviceAuthenticationManager   = serviceAuthenticationManager;
     _jobAdSearchesQuery             = jobAdSearchesQuery;
     _locationQuery = locationQuery;
 }
コード例 #19
0
 public SearchController(IExecuteMemberSearchCommand executeMemberSearchCommand, IMemberSearchesCommand memberSearchesCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IMemberStatusQuery memberStatusQuery, IMemberSearchSuggestionsQuery memberSearchSuggestionsQuery, IMemberSearchesQuery memberSearchesQuery, ICandidateListsCommand candidateListsCommand, IEmployerCreditsQuery employerCreditsQuery, ILocationQuery locationQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IIndustriesQuery industriesQuery)
     : base(executeMemberSearchCommand, employerMemberViewsQuery, memberStatusQuery)
 {
     _memberSearchSuggestionsQuery = memberSearchSuggestionsQuery;
     _memberSearchesCommand        = memberSearchesCommand;
     _memberSearchesQuery          = memberSearchesQuery;
     _candidateListsCommand        = candidateListsCommand;
     _employerCreditsQuery         = employerCreditsQuery;
     _locationQuery    = locationQuery;
     _communitiesQuery = communitiesQuery;
     _verticalsQuery   = verticalsQuery;
     _industriesQuery  = industriesQuery;
 }
コード例 #20
0
ファイル: LocationMapper.cs プロジェクト: formist/LinkMe
        public LocationMapper(ILocationQuery locationQuery)
        {
            _world.BuildUp(locationQuery, false);
            var australia = locationQuery.GetCountry("Australia");

            Add(locationQuery, australia, "Canberra", "ACT", "20-162-3", "20-162-4");
            Add(locationQuery, australia, "Sydney", "NSW", "20-163-5", "20-163-6");
            Add(locationQuery, australia, "Darwin", "NT", "20-164-7", "20-164-8");
            Add(locationQuery, australia, "Brisbane", "QLD", "20-165-9", "20-165-10");
            Add(locationQuery, australia, "Adelaide", "SA", "20-166-11", "20-166-12");
            Add(locationQuery, australia, "Hobart", "TAS", "20-167-13", "20-167-14");
            Add(locationQuery, australia, "Melbourne", "VIC", "20-168-1", "20-168-2");
            Add(locationQuery, australia, "Perth", "WA", "20-169-15", "20-169-16");
        }
コード例 #21
0
        private static void InitialiseMvc(ILocationQuery locationQuery, IIndustriesQuery industriesQuery)
        {
            // Controllers.

            ControllerBuilder.Current.SetControllerFactory(new UnityControllerFactory(Container.Current));

            // Binders.

            ModelBinders.Binders.Add(typeof(MemberSearchCriteria), new ModelBinder(new MemberSearchCriteriaConverter(locationQuery, industriesQuery), new StandardErrorHandler()));
            ModelBinders.Binders.Add(typeof(EmployerJoinModel), new ModelBinder(new EmployerJoinModelConverter(), new StandardErrorHandler()));

            // ValueProviders.

            ValueProviderFactories.Factories.Add(new JsonValueProviderFactory());
        }
コード例 #22
0
ファイル: VerticalsModule.cs プロジェクト: formist/LinkMe
        protected override void OnInit()
        {
            base.OnInit();

            _verticalsCommand              = Container.Current.Resolve <IVerticalsCommand>();
            _authenticationManager         = Container.Current.Resolve <IAuthenticationManager>();
            _cookieManager                 = Container.Current.Resolve <ICookieManager>();
            _externalAuthenticationCommand = Container.Current.Resolve <IExternalAuthenticationCommand>();
            _userAccountsCommand           = Container.Current.Resolve <IUserAccountsCommand>();
            _memberAccountsCommand         = Container.Current.Resolve <IMemberAccountsCommand>();
            _memberAffiliationsCommand     = Container.Current.Resolve <IMemberAffiliationsCommand>();
            _locationQuery                 = Container.Current.Resolve <ILocationQuery>();

            _nonVerticalHost = ApplicationContext.Instance.GetProperty("website.linkme.host");
        }
コード例 #23
0
ファイル: CampaignsController.cs プロジェクト: formist/LinkMe
 public CampaignsController(ICampaignsCommand campaignsCommand, ICampaignsQuery campaignsQuery, ICampaignEmailsCommand campaignEmailsCommand, ICampaignCriteriaCommand campaignCriteriaCommand, ISettingsQuery settingsQuery, IIndustriesQuery industriesQuery, ICommunitiesQuery communitiesQuery, IAdministratorsQuery administratorsQuery, ILoginCredentialsQuery loginCredentialsQuery, IEmployersQuery employersQuery, IMembersQuery membersQuery, ILocationQuery locationQuery)
 {
     _campaignsCommand        = campaignsCommand;
     _campaignsQuery          = campaignsQuery;
     _campaignEmailsCommand   = campaignEmailsCommand;
     _campaignCriteriaCommand = campaignCriteriaCommand;
     _settingsQuery           = settingsQuery;
     _industriesQuery         = industriesQuery;
     _communitiesQuery        = communitiesQuery;
     _administratorsQuery     = administratorsQuery;
     _loginCredentialsQuery   = loginCredentialsQuery;
     _employersQuery          = employersQuery;
     _membersQuery            = membersQuery;
     _locationQuery           = locationQuery;
 }
コード例 #24
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;
 }
コード例 #25
0
 public AccountsManager(ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager, IDevAuthenticationManager devAuthenticationManager, IMemberAccountsCommand memberAccountsCommand, IEmployerAccountsCommand employerAccountsCommand, IOrganisationsCommand organisationsCommand, ILoginCredentialsQuery loginCredentialsQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IPhoneNumbersQuery phoneNumbersQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IPartnersQuery partnersQuery, ICookieManager cookieManager, IReferralsManager referralsManager, IProfilesCommand profilesCommand, IProfilesQuery profilesQuery)
 {
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
     _devAuthenticationManager   = devAuthenticationManager;
     _memberAccountsCommand      = memberAccountsCommand;
     _employerAccountsCommand    = employerAccountsCommand;
     _organisationsCommand       = organisationsCommand;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _locationQuery     = locationQuery;
     _industriesQuery   = industriesQuery;
     _phoneNumbersQuery = phoneNumbersQuery;
     _communitiesQuery  = communitiesQuery;
     _verticalsQuery    = verticalsQuery;
     _partnersQuery     = partnersQuery;
     _cookieManager     = cookieManager;
     _referralsManager  = referralsManager;
     _profilesCommand   = profilesCommand;
     _profilesQuery     = profilesQuery;
 }
コード例 #26
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;
 }
コード例 #27
0
        private static LocationReference Map(string location, string postcode, ILocationQuery locationQuery)
        {
            // Need to consolidate location and postcode into a single JobLocation.

            location = (location ?? string.Empty).Trim();
            postcode = (postcode ?? string.Empty).Trim();
            if (postcode.Length != 0)
            {
                // If the postcode is not already part of the location then add it in, but only if it is actually recognised as a postcode.

                if (location.IndexOf(postcode, StringComparison.InvariantCultureIgnoreCase) == -1)
                {
                    var postalCode = locationQuery.GetPostalCode(locationQuery.GetCountry("Australia"), postcode);
                    if (postalCode != null)
                    {
                        location += " " + postcode;
                    }
                }
            }

            // Resolve the location.

            return(locationQuery.ResolveLocation(locationQuery.GetCountry("Australia"), location));
        }
コード例 #28
0
ファイル: JobAdsPollerTask.cs プロジェクト: formist/LinkMe
        public JobAdsPollerTask(IMyCareerQuery myCareerQuery, IEmployersQuery employersQuery, ILoginCredentialsQuery loginCredentialsQuery, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, ILocationQuery locationQuery)
            : base(EventSource)
        {
            _myCareerQuery         = myCareerQuery;
            _employersQuery        = employersQuery;
            _loginCredentialsQuery = loginCredentialsQuery;
            _jobAdsCommand         = jobAdsCommand;
            _jobAdsQuery           = jobAdsQuery;
            _jobAdIntegrationQuery = jobAdIntegrationQuery;
            _externalJobAdsCommand = externalJobAdsCommand;
            _locationMapper        = new LocationMapper(locationQuery);

            _progressInterval = 5 * 60 * 1000; // default = 5 min.
        }
コード例 #29
0
 public JobAdSearchCriteriaConverter(ILocationQuery locationQuery, IIndustriesQuery industriesQuery)
 {
     _locationQuery   = locationQuery;
     _industriesQuery = industriesQuery;
 }
コード例 #30
0
 public LocationMapper(ILocationQuery locationQuery)
 {
     _locationQuery = locationQuery;
 }