public static void AssemblyInitialize(TestContext context) { InitialiseContainer(); ApplicationContext.SetupApplications(WebSite.Integration); JobAdSearchHost.Start(); JobAdSortHost.Start(); }
public void TestCleanup() { StopSortHosts(); StopSearchHosts(); JobAdSortHost.Start(); JobAdSearchHost.Start(); }
public static void AssemblyInitialize(TestContext context) { InitialiseContainer(); TestApplicationContext.SetupApplications(WebSite.LinkMe); MemberSearchHost.Start(); JobAdSearchHost.Start(); JobAdSortHost.Start(); }
protected override void FixtureSetUp() { base.FixtureSetUp(); ApplicationContext.SetupApplications(WebSite.Api); MemberSearchHost.Start(); JobAdSearchHost.Start(); JobAdSortHost.Start(); JobAdSentimentAnalysisHost.Start(); }
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(); } }
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); } } }
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); } } }
public static void AssemblyInitialize(TestContext context) { InitialiseContainer(); JobAdSearchHost.Start(); JobAdSortHost.Start(); }
public void TestInitialize() { JobAdSearchHost.Start(); JobAdSortHost.Start(); JobAdSentimentAnalysisHost.Start(); }