Esempio n. 1
0
        IList <JobAdView> IMemberJobAdViewsQuery.GetJobAdViews(IEnumerable <Guid> jobAdIds)
        {
            var jobAds = _jobAdsQuery.GetJobAds <JobAd>(jobAdIds);

            return((from j in jobAds
                    select new JobAdView(j, _jobAdProcessingQuery.GetJobAdProcessing(j))).ToList());
        }
Esempio n. 2
0
        private bool ShouldSend(JobAdEntry jobAd, InternalApplication application)
        {
            // Do not send an email to the job poster if the job ad is external.
            // It is assumed that submitting the external application will send them a notification.

            return(_jobAdProcessingQuery.GetJobAdProcessing(jobAd) == JobAdProcessing.ManagedInternally &&
                   !application.IsPending);
        }
        void IJobAdApplicationSubmissionsCommand.CreateApplication(IJobAd jobAd, InternalApplication application)
        {
            // Create the application.

            var credits = _employerCreditsQuery.GetEffectiveActiveAllocation <ApplicantCredit>(new Employer {
                Id = jobAd.PosterId
            });

            application.PositionId         = jobAd.Id;
            application.IsPositionFeatured = credits.RemainingQuantity > 0;

            var processing = _jobAdProcessingQuery.GetJobAdProcessing(jobAd);

            application.IsPending = processing != JobAdProcessing.ManagedInternally;

            _applicationsCommand.CreateApplication(application);
        }