Example #1
0
 public static void AssemblyInitialize(TestContext context)
 {
     InitialiseContainer();
     ApplicationContext.SetupApplications(WebSite.Integration);
     JobAdSearchHost.Start();
     JobAdSortHost.Start();
 }
Example #2
0
 public void TestCleanup()
 {
     StopSortHosts();
     StopSearchHosts();
     JobAdSortHost.Start();
     JobAdSearchHost.Start();
 }
Example #3
0
 public static void AssemblyInitialize(TestContext context)
 {
     InitialiseContainer();
     TestApplicationContext.SetupApplications(WebSite.LinkMe);
     MemberSearchHost.Start();
     JobAdSearchHost.Start();
     JobAdSortHost.Start();
 }
Example #4
0
 protected override void FixtureSetUp()
 {
     base.FixtureSetUp();
     ApplicationContext.SetupApplications(WebSite.Api);
     MemberSearchHost.Start();
     JobAdSearchHost.Start();
     JobAdSortHost.Start();
     JobAdSentimentAnalysisHost.Start();
 }
Example #5
0
        private void Start()
        {
            try
            {
                MemberSearchHost.Start(chkSynchroniseIndex.Checked, chkRebuildIndex.Checked);
                JobAdSearchHost.Start(chkSynchroniseIndex.Checked, chkRebuildIndex.Checked);
                JobAdSortHost.Start(chkSynchroniseIndex.Checked, chkRebuildIndex.Checked);
                ResourceSearchHost.Start(chkSynchroniseIndex.Checked, chkRebuildIndex.Checked);
                JobG8Host.Start();

                chkSynchroniseIndex.Enabled = false;
                chkRebuildIndex.Enabled     = false;
                btnStart.Enabled            = false;
                btnStop.Enabled             = true;
            }
            catch (Exception ex)
            {
                new ExceptionDialog(ex, "Exception").ShowDialog();
            }
        }
Example #6
0
        private void MapProductionFeed(string file, bool saveParsedData)
        {
            if (saveParsedData)
            {
                JobAdSearchHost.Start();
                JobAdSortHost.Start();
            }

            const string postId            = "123456";
            var          jobPosterId       = new Guid("D12C0E2E-E464-491C-96D2-15D79F98E506");
            var          integrationUserId = _careerOneQuery.GetIntegratorUser().Id;

            var posts = GetJobFeed(file);
            IJobFeedMapper <Job> mapper = new JobAdMapper(_locationQuery, _industriesQuery, null);

            foreach (var post in posts)
            {
                var jobAd = new JobAd
                {
                    PosterId    = jobPosterId,
                    Integration =
                    {
                        IntegratorReferenceId = postId,
                        ExternalApplyUrl      = string.Format("http://jobview.careerone.com.au/GetJob.aspx?JobID={0}", postId),
                        IntegratorUserId      = integrationUserId,
                    },
                };
                mapper.ApplyPostData(post, jobAd);

                if (saveParsedData)
                {
                    _jobAdsCommand.CreateJobAd(jobAd);
                    _jobAdsCommand.OpenJobAd(jobAd);
                }
            }
        }
Example #7
0
        private void MapProductionFeed(string file, bool saveParsedData)
        {
            if (saveParsedData)
            {
                JobAdSearchHost.Start();
                JobAdSortHost.Start();
            }

            const string postId            = "123456";
            var          jobPosterId       = CreateEmployer(0).Id;
            var          integrationUserId = _jxtQuery.GetIntegratorUser().Id;

            var posts = GetJobFeed(file);
            IJobFeedMapper <Job> mapper = new JobAdMapper(_locationQuery, _industriesQuery, null);

            foreach (var post in posts)
            {
                var jobAd = new JobAd
                {
                    PosterId    = jobPosterId,
                    Integration =
                    {
                        IntegratorReferenceId = postId,
                        ExternalApplyUrl      = post.ApplicationMethod.Value,
                        IntegratorUserId      = integrationUserId,
                    },
                };
                mapper.ApplyPostData(post, jobAd);

                if (saveParsedData)
                {
                    _jobAdsCommand.CreateJobAd(jobAd);
                    _jobAdsCommand.OpenJobAd(jobAd);
                }
            }
        }
Example #8
0
 public static void AssemblyInitialize(TestContext context)
 {
     InitialiseContainer();
     JobAdSearchHost.Start();
     JobAdSortHost.Start();
 }
Example #9
0
 public void TestInitialize()
 {
     JobAdSearchHost.Start();
     JobAdSortHost.Start();
     JobAdSentimentAnalysisHost.Start();
 }