Esempio n. 1
0
        private Employer CreateEmployer()
        {
            var employer  = _employerAccountsCommand.CreateTestEmployer(0, _organisationsCommand.CreateTestOrganisation(0));
            var jobPoster = _jobPostersCommand.GetJobPoster(employer.Id);

            jobPoster.SendSuggestedCandidates = true;
            _jobPostersCommand.UpdateJobPoster(jobPoster);
            return(employer);
        }
Esempio n. 2
0
        void IAnonymousJobAdsCommand.CreateJobAd(AnonymousUser user, JobAd jobAd)
        {
            var poster = _jobPostersCommand.GetJobPoster(user.Id);

            if (poster == null)
            {
                poster = new JobPoster {
                    Id = user.Id
                };
                _jobPostersCommand.CreateJobPoster(poster);
            }

            jobAd.PosterId = poster.Id;
            _jobAdsCommand.CreateJobAd(jobAd);
        }