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;
 }
Beispiel #2
0
        public void MemberSearchTestsInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            var connectionFactory = Resolve <IDataContextFactory>();
            var locationQuery     = Resolve <ILocationQuery>();
            var industriesQuery   = Resolve <IIndustriesQuery>();

            _repository            = new MembersRepository(connectionFactory, new MemberSearchCriteriaPersister(locationQuery, industriesQuery));
            _memberSearchesCommand = new MemberSearchesCommand(_repository);
            _memberSearchesQuery   = new MemberSearchesQuery(_repository);
        }
Beispiel #3
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;
 }
Beispiel #4
0
 public SearchApiController(IExecuteMemberSearchCommand executeMemberSearchCommand, IEmployerMemberViewsQuery employerMemberViewsQuery, IMemberStatusQuery memberStatusQuery, IMemberSearchesCommand memberSearchesCommand)
     : base(executeMemberSearchCommand, employerMemberViewsQuery, memberStatusQuery)
 {
     _memberSearchesCommand = memberSearchesCommand;
 }
Beispiel #5
0
 public MemberSearchAlertsCommand(ISearchAlertsRepository repository, IMemberSearchesCommand memberSearchesCommand)
 {
     _repository            = repository;
     _memberSearchesCommand = memberSearchesCommand;
 }