Ejemplo n.º 1
0
 public FlagListsController(IExecuteMemberSearchCommand executeMemberSearchCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IMemberStatusQuery memberStatusQuery, ICandidateFlagListsQuery candidateFlagListsQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery)
     : base(executeMemberSearchCommand, employerMemberViewsQuery, memberStatusQuery)
 {
     _candidateFlagListsQuery = candidateFlagListsQuery;
     _communitiesQuery        = communitiesQuery;
     _verticalsQuery          = verticalsQuery;
 }
Ejemplo n.º 2
0
 public BlockListsController(IExecuteJobAdSortCommand executeJobAdSortCommand, IJobAdsQuery jobAdsQuery, IJobAdBlockListsQuery jobAdBlockListsQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IJobAdFlagListsQuery jobAdFlagListsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdProcessingQuery jobAdProcessingQuery, IJobAdFoldersCommand jobAdFoldersCommand, IJobAdFoldersQuery jobAdFoldersQuery, IEmployersQuery employersQuery, IIndustriesQuery industriesQuery)
     : base(executeJobAdSortCommand, jobAdsQuery, jobAdFlagListsQuery, memberJobAdViewsQuery, jobAdProcessingQuery, jobAdFoldersQuery, jobAdFoldersCommand, jobAdBlockListsQuery, industriesQuery, employersQuery)
 {
     _jobAdBlockListsQuery = jobAdBlockListsQuery;
     _communitiesQuery     = communitiesQuery;
     _verticalsQuery       = verticalsQuery;
 }
Ejemplo n.º 3
0
        public ManageCandidatesController(IExecuteMemberSearchCommand executeMemberSearchCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IMemberStatusQuery memberStatusQuery, IJobAdsQuery jobAdsQuery, IJobAdApplicantsQuery jobAdApplicantsQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery)
            : base(executeMemberSearchCommand, employerMemberViewsQuery, memberStatusQuery)
        {
            _jobAdsQuery          = jobAdsQuery;
            _jobAdApplicantsQuery = jobAdApplicantsQuery;

            _communitiesQuery = communitiesQuery;
            _verticalsQuery   = verticalsQuery;
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
0
        public void VerticalTestsInitialize()
        {
            var connectionFactory = Resolve <IDbConnectionFactory>();

            connectionFactory.DeleteAllTestData();

            _repository       = new VerticalsRepository(Resolve <IDataContextFactory>());
            _verticalsCommand = new VerticalsCommand(_repository);
            _verticalsQuery   = new VerticalsQuery(_repository);
        }
Ejemplo n.º 7
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;
 }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
0
 public VerticalsController(IVerticalsCommand verticalsCommand, IVerticalsQuery verticalsQuery, ICommunitiesQuery communitiesQuery, IWebSiteQuery webSiteQuery, IMembersQuery membersQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand)
 {
     _verticalsCommand            = verticalsCommand;
     _verticalsQuery              = verticalsQuery;
     _communitiesQuery            = communitiesQuery;
     _webSiteQuery                = webSiteQuery;
     _membersQuery                = membersQuery;
     _candidatesQuery             = candidatesQuery;
     _resumesQuery                = resumesQuery;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
 }
Ejemplo n.º 10
0
        public static bool CanEditContactDetails(this IVerticalsQuery verticalsQuery, Guid?verticalId)
        {
            if (verticalId != null)
            {
                var vertical = verticalsQuery.GetVertical(verticalId.Value);
                if (vertical != null && vertical.RequiresExternalLogin)
                {
                    return(false);
                }
            }

            return(true);
        }
Ejemplo n.º 11
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;
 }
Ejemplo n.º 12
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;
 }
Ejemplo n.º 13
0
        public VerticalWebSiteApplications(IVerticalsQuery verticalsQuery, Func <WebSite, string, string> getHost, Func <WebSite, int> getPort, Func <WebSite, string> getApplicationPath)
        {
            // Add a default.

            var webSiteApplications = new WebSiteApplications(Guid.Empty);

            foreach (WebSite webSite in Enum.GetValues(typeof(WebSite)))
            {
                var host            = getHost(webSite, null);
                var port            = getPort(webSite);
                var applicationPath = getApplicationPath(webSite);
                if (port != Url.InsecurePort || applicationPath != null)
                {
                    webSiteApplications.Add(webSite, host, port, applicationPath);
                }
            }

            Add(webSiteApplications);

            // Set up a collection for each vertical that has its own host defined.

            foreach (var vertical in verticalsQuery.GetVerticals())
            {
                if (!string.IsNullOrEmpty(vertical.Host))
                {
                    webSiteApplications = new WebSiteApplications(vertical.Id);
                    foreach (WebSite webSite in Enum.GetValues(typeof(WebSite)))
                    {
                        var host            = getHost(webSite, vertical.Host);
                        var port            = getPort(webSite);
                        var applicationPath = getApplicationPath(webSite);
                        if (port != Url.InsecurePort || applicationPath != null)
                        {
                            webSiteApplications.Add(webSite, host, port, applicationPath);
                        }
                    }

                    Add(webSiteApplications);
                }
            }
        }
Ejemplo n.º 14
0
 public TinyUrlsController(ITinyUrlQuery tinyUrlQuery, IVerticalsQuery verticalsQuery)
 {
     _tinyUrlQuery   = tinyUrlQuery;
     _verticalsQuery = verticalsQuery;
 }
Ejemplo n.º 15
0
 public FoldersMobileController(IExecuteJobAdSortCommand executeJobAdSortCommand, IJobAdFoldersCommand jobAdFoldersCommand, IJobAdFoldersQuery jobAdFoldersQuery, IJobAdFlagListsQuery jobAdFlagListsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdProcessingQuery jobAdProcessingQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IJobAdsQuery jobAdsQuery, IJobAdBlockListsQuery jobAdBlockListsQuery, IEmployersQuery employersQuery, IIndustriesQuery industriesQuery, IMemberJobAdListsCommand memberJobAdListsCommand)
     : base(executeJobAdSortCommand, jobAdFoldersCommand, jobAdFoldersQuery, jobAdFlagListsQuery, memberJobAdViewsQuery, jobAdProcessingQuery, communitiesQuery, verticalsQuery, jobAdsQuery, jobAdBlockListsQuery, employersQuery, industriesQuery)
 {
     _memberJobAdListsCommand = memberJobAdListsCommand;
 }
Ejemplo n.º 16
0
 public VerticalViewEngine(IUnityContainer container, IVerticalsQuery verticalsQuery)
     : base(container)
 {
     _verticalsQuery = verticalsQuery;
 }
Ejemplo n.º 17
0
 public WebSiteQuery(IVerticalsQuery verticalsQuery)
 {
     _verticalsQuery = verticalsQuery;
 }