public void TestInitialize() { _australia = _locationQuery.GetCountry("Australia"); Resolve <IDbConnectionFactory>().DeleteAllTestData(); JobAdSearchHost.ClearIndex(); var employer = _employerAccountsCommand.CreateTestEmployer("jobposter", _organisationsCommand.CreateTestOrganisation("The Job Advertiser")); _one = employer.CreateTestJobAd("Title one", "The content for the first ad"); _one.CreatedTime = DateTime.Now.AddDays(-1); // Just to make sure it's before "two"; we only index days. _one.Description.Salary = new Salary { LowerBound = 50000, UpperBound = 60000, Rate = SalaryRate.Year, Currency = Currency.AUD }; _jobAdsCommand.CreateJobAd(_one); _jobAdsCommand.OpenJobAd(_one); _two = employer.CreateTestJobAd("Title two", "Different content for the second ad"); _locationQuery.ResolvePostalSuburb(_two.Description.Location, _australia, "2000"); _two.Description.CompanyName = "Really Bad Employers"; _two.Description.JobTypes = JobTypes.Contract; _two.Description.Industries = new List <Industry> { _industriesQuery.GetIndustry("Other") }; _jobAdsCommand.CreateJobAd(_two); _jobAdsCommand.OpenJobAd(_two); }
public void EmailJobSearchAlertsTaskTestsInitialize() { ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; Resolve <IDbConnectionFactory>().DeleteAllTestData(); _emailServer.ClearEmails(); JobAdSearchHost.ClearIndex(); JobAdSortHost.ClearIndex(); }
public static void ClassInitialize(TestContext context) { Resolve <IDbConnectionFactory>().DeleteAllTestData(); JobAdSearchHost.ClearIndex(); JobAdSortHost.ClearIndex(); _searchService = Resolve <IJobAdSearchService>(); }
public void TestInitialize() { _unsubscribeButton = new HtmlButtonTester(Browser, "Unsubscribe"); _settingsUrl = new ReadOnlyApplicationUrl(true, "~/members/settings"); _savedUrl = new ReadOnlyApplicationUrl(true, "~/members/searches/saved"); _baseJobUrl = new ReadOnlyApplicationUrl(true, "~/jobs/"); _contactUsUrl = new ReadOnlyApplicationUrl("~/faqs/setting-up-your-profile/09d11385-0213-4157-a5a9-1b2a74e6887e"); JobAdSearchHost.ClearIndex(); }
public void ResultsTestsInitialize() { JobAdSearchHost.ClearIndex(); JobAdSortHost.ClearIndex(); }
protected void ClearSearchIndexes() { MemberSearchHost.ClearIndex(); JobAdSearchHost.ClearIndex(); JobAdSortHost.ClearIndex(); }
public void TestInitialize() { JobAdSearchHost.ClearIndex(); }
public void CommunityTestsInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); JobAdSearchHost.ClearIndex(); }
public void WebServiceTestsInitialize() { JobAdSearchHost.ClearIndex(); JobAdSortHost.ClearIndex(); }