コード例 #1
0
        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);
        }
コード例 #2
0
 public void EmailJobSearchAlertsTaskTestsInitialize()
 {
     ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };
     Resolve <IDbConnectionFactory>().DeleteAllTestData();
     _emailServer.ClearEmails();
     JobAdSearchHost.ClearIndex();
     JobAdSortHost.ClearIndex();
 }
コード例 #3
0
ファイル: ContentTests.cs プロジェクト: formist/LinkMe
        public static void ClassInitialize(TestContext context)
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            JobAdSearchHost.ClearIndex();
            JobAdSortHost.ClearIndex();

            _searchService = Resolve <IJobAdSearchService>();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
 public void ResultsTestsInitialize()
 {
     JobAdSearchHost.ClearIndex();
     JobAdSortHost.ClearIndex();
 }
コード例 #6
0
ファイル: WebTestFixture.cs プロジェクト: formist/LinkMe
 protected void ClearSearchIndexes()
 {
     MemberSearchHost.ClearIndex();
     JobAdSearchHost.ClearIndex();
     JobAdSortHost.ClearIndex();
 }
コード例 #7
0
 public void TestInitialize()
 {
     JobAdSearchHost.ClearIndex();
 }
コード例 #8
0
ファイル: CommunityTests.cs プロジェクト: formist/LinkMe
 public void CommunityTestsInitialize()
 {
     Resolve <IDbConnectionFactory>().DeleteAllTestData();
     JobAdSearchHost.ClearIndex();
 }
コード例 #9
0
 public void WebServiceTestsInitialize()
 {
     JobAdSearchHost.ClearIndex();
     JobAdSortHost.ClearIndex();
 }