private static void AssertSelected(HtmlListBoxTester tester, ICollection <Guid> ids)
 {
     foreach (var item in tester.Items)
     {
         Assert.AreEqual(ids.Contains(new Guid(item.Value)), item.IsSelected);
     }
 }
 public void TestInitialize()
 {
     _jobTitleTextBox           = new HtmlTextBoxTester(Browser, "JobTitle");
     _companyKeywordsTextBox    = new HtmlTextBoxTester(Browser, "CompanyKeywords");
     _desiredJobTitleTextBox    = new HtmlTextBoxTester(Browser, "DesiredJobTitle");
     _anyKeywordsTextBox        = new HtmlTextBoxTester(Browser, "AnyKeywords");
     _allKeywordsTextBox        = new HtmlTextBoxTester(Browser, "AllKeywords");
     _exactPhraseTextBox        = new HtmlTextBoxTester(Browser, "ExactPhrase");
     _withoutKeywordsTextBox    = new HtmlTextBoxTester(Browser, "WithoutKeywords");
     _countryDropDownList       = new HtmlDropDownListTester(Browser, "CountryId");
     _distanceTextBox           = new HtmlTextBoxTester(Browser, "Distance");
     _locationTextBox           = new HtmlTextBoxTester(Browser, "Location");
     _includeRelocatingCheckBox = new HtmlCheckBoxTester(Browser, "IncludeRelocating");
     _industriesListBox         = new HtmlListBoxTester(Browser, "IndustryIds");
     _lowerBoundTextBox         = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
     _upperBoundTextBox         = new HtmlTextBoxTester(Browser, "SalaryUpperBound");
     _availableNowCheckBox      = new HtmlCheckBoxTester(Browser, "AvailableNow");
     _activelyLookingCheckBox   = new HtmlCheckBoxTester(Browser, "ActivelyLooking");
     _openToOffersCheckBox      = new HtmlCheckBoxTester(Browser, "OpenToOffers");
     _notLookingCheckBox        = new HtmlCheckBoxTester(Browser, "NotLooking");
     _unspecifiedCheckBox       = new HtmlCheckBoxTester(Browser, "Unspecified");
     _aboriginalCheckBox        = new HtmlCheckBoxTester(Browser, "Aboriginal");
     _torresIslanderCheckBox    = new HtmlCheckBoxTester(Browser, "TorresIslander");
     _communityDropDownList     = new HtmlDropDownListTester(Browser, "CommunityId");
 }
Example #3
0
        public void TestInitialize()
        {
            _desiredJobUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/desiredjob");

            _desiredJobTitleTextBox                       = new HtmlTextBoxTester(Browser, "DesiredJobTitle");
            _fullTimeCheckBox                             = new HtmlCheckBoxTester(Browser, "FullTime");
            _partTimeCheckBox                             = new HtmlCheckBoxTester(Browser, "PartTime");
            _contractCheckBox                             = new HtmlCheckBoxTester(Browser, "Contract");
            _tempCheckBox                                 = new HtmlCheckBoxTester(Browser, "Temp");
            _jobShareTextBox                              = new HtmlCheckBoxTester(Browser, "JobShare");
            _availableNowRadioButton                      = new HtmlRadioButtonTester(Browser, "AvailableNow");
            _activelyLookingRadioButton                   = new HtmlRadioButtonTester(Browser, "ActivelyLooking");
            _openToOffersRadioButton                      = new HtmlRadioButtonTester(Browser, "OpenToOffers");
            _notLookingRadioButton                        = new HtmlRadioButtonTester(Browser, "NotLooking");
            _salaryRateYearRadioButton                    = new HtmlRadioButtonTester(Browser, "SalaryRateYear");
            _salaryRateHourRadioButton                    = new HtmlRadioButtonTester(Browser, "SalaryRateHour");
            _salaryLowerBoundTextBox                      = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _isSalaryNotVisibleCheckBox                   = new HtmlCheckBoxTester(Browser, "IsSalaryNotVisible");
            _sendSuggestedJobsCheckBox                    = new HtmlCheckBoxTester(Browser, "SendSuggestedJobs");
            _relocationPreferenceYesRadioButton           = new HtmlRadioButtonTester(Browser, "RelocationPreferenceYes");
            _relocationPreferenceNoRadioButton            = new HtmlRadioButtonTester(Browser, "RelocationPreferenceNo");
            _relocationPreferenceWouldConsiderRadioButton = new HtmlRadioButtonTester(Browser, "RelocationPreferenceWouldConsider");
            _relocationCountryIdsListBox                  = new HtmlListBoxTester(Browser, "RelocationCountryIds");
            _relocationCountryLocationIdsListBox          = new HtmlListBoxTester(Browser, "RelocationCountryLocationIds");
        }
Example #4
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            ClearSearchIndexes();
            _emailServer.ClearEmails();

            _newJobAdUrl = new ReadOnlyApplicationUrl(true, "~/employers/jobads/jobad");

            _titleTextBox               = new HtmlTextBoxTester(Browser, "Title");
            _positionTitleTextBox       = new HtmlTextBoxTester(Browser, "PositionTitle");
            _bulletPoint1TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint1");
            _bulletPoint2TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint2");
            _bulletPoint3TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint3");
            _summaryTextBox             = new HtmlTextAreaTester(Browser, "Summary");
            _contentTextBox             = new HtmlTextAreaTester(Browser, "Content");
            _emailAddressTextBox        = new HtmlTextBoxTester(Browser, "EmailAddress");
            _locationTextBox            = new HtmlTextBoxTester(Browser, "Location");
            _companyNameTextBox         = new HtmlTextBoxTester(Browser, "CompanyName");
            _residencyRequiredCheckBox  = new HtmlCheckBoxTester(Browser, "ResidencyRequired");
            _industryIdsListBox         = new HtmlListBoxTester(Browser, "IndustryIds");
            _fullTimeCheckBox           = new HtmlCheckBoxTester(Browser, "FullTime");
            _hideContactDetailsCheckBox = new HtmlCheckBoxTester(Browser, "HideContactDetails");

            _previewButton = new HtmlButtonTester(Browser, "preview");
            _publishButton = new HtmlButtonTester(Browser, "publish");
        }
Example #5
0
        public void TestInitialize()
        {
            JobAdSearchHost.Stop();
            JobAdSortHost.Stop();
            StartSearchHosts();
            StartSortHosts();

            _titleTextBox               = new HtmlTextBoxTester(Browser, "Title");
            _positionTitleTextBox       = new HtmlTextBoxTester(Browser, "PositionTitle");
            _bulletPoint1TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint1");
            _bulletPoint2TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint2");
            _bulletPoint3TextBox        = new HtmlTextBoxTester(Browser, "BulletPoint3");
            _summaryTextBox             = new HtmlTextAreaTester(Browser, "Summary");
            _contentTextBox             = new HtmlTextAreaTester(Browser, "Content");
            _emailAddressTextBox        = new HtmlTextBoxTester(Browser, "EmailAddress");
            _locationTextBox            = new HtmlTextBoxTester(Browser, "Location");
            _companyNameTextBox         = new HtmlTextBoxTester(Browser, "CompanyName");
            _residencyRequiredCheckBox  = new HtmlCheckBoxTester(Browser, "ResidencyRequired");
            _industryIdsListBox         = new HtmlListBoxTester(Browser, "IndustryIds");
            _fullTimeCheckBox           = new HtmlCheckBoxTester(Browser, "FullTime");
            _hideContactDetailsCheckBox = new HtmlCheckBoxTester(Browser, "HideContactDetails");

            _previewButton = new HtmlButtonTester(Browser, "preview");
            _publishButton = new HtmlButtonTester(Browser, "publish");

            _newJobAdUrl = new ReadOnlyApplicationUrl(true, "~/employers/jobads/jobad");
        }
Example #6
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();

            _loginIdTextBox          = new HtmlTextBoxTester(Browser, "LoginId");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _employerRadioButton     = new HtmlRadioButtonTester(Browser, "Employer");
            _recruiterRadioButton    = new HtmlRadioButtonTester(Browser, "Recruiter");
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _industryIdsListBox      = new HtmlListBoxTester(Browser, "IndustryIds");
            _jobTitleTextBox         = new HtmlTextBoxTester(Browser, "JobTitle");
            _saveButton   = new HtmlButtonTester(Browser, "save");
            _cancelButton = new HtmlButtonTester(Browser, "cancel");
            _showSuggestedCandidatesCheckBox    = new HtmlCheckBoxTester(Browser, "ShowSuggestedCandidates");
            _sendSuggestedCandidatesCheckBox    = new HtmlCheckBoxTester(Browser, "SendSuggestedCandidates");
            _receiveSuggestedCandidatesCheckBox = new HtmlCheckBoxTester(Browser, "ReceiveSuggestedCandidates");
            _emailEmployerUpdateCheckBox        = new HtmlCheckBoxTester(Browser, "EmailEmployerUpdate");
            _emailCampaignCheckBox = new HtmlCheckBoxTester(Browser, "EmailCampaign");

            _settingsUrl = new ReadOnlyApplicationUrl(true, "~/employers/settings");
        }
Example #7
0
 public void TestInitialize()
 {
     _advancedSearchUrl = new ReadOnlyApplicationUrl("~/search/jobs");
     _searchResultsUrl  = new ReadOnlyApplicationUrl("~/search/jobs/results");
     _allWordsTextBox   = new HtmlTextBoxTester(Browser, "KeywordsAdvanced");
     _searchButton      = new HtmlButtonTester(Browser, "searchAdvanced");
     _industriesListBox = new HtmlListBoxTester(Browser, "IndustriesAdvanced");
 }
 public void TestInitialize()
 {
     _employersCheckBox               = new HtmlCheckBoxTester(Browser, "Employers");
     _recruitersCheckBox              = new HtmlCheckBoxTester(Browser, "Recruiters");
     _verifiedOrganisationsCheckBox   = new HtmlCheckBoxTester(Browser, "VerifiedOrganisations");
     _unverifiedOrganisationsCheckBox = new HtmlCheckBoxTester(Browser, "UnverifiedOrganisations");
     _industriesListBox               = new HtmlListBoxTester(Browser, "IndustryIds");
     _minimumLoginsTextBox            = new HtmlTextBoxTester(Browser, "MinimumLogins");
     _maximumLoginsTextBox            = new HtmlTextBoxTester(Browser, "MaximumLogins");
 }
Example #9
0
        public void EmployerNewJobAdTestsInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _previewButton = new HtmlButtonTester(Browser, "preview");
            _saveButton    = new HtmlButtonTester(Browser, "save");

            _publishButton = new HtmlButtonTester(Browser, "publish");
            _reopenButton  = new HtmlButtonTester(Browser, "reopen");
            _repostButton  = new HtmlButtonTester(Browser, "repost");
            _editButton    = new HtmlButtonTester(Browser, "edit");

            _titleTextBox                   = new HtmlTextBoxTester(Browser, "Title");
            _positionTitleTextBox           = new HtmlTextBoxTester(Browser, "PositionTitle");
            _externalReferenceIdTextBox     = new HtmlTextBoxTester(Browser, "ExternalReferenceId");
            _bulletPoint1TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint1");
            _bulletPoint2TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint2");
            _bulletPoint3TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint3");
            _summaryTextBox                 = new HtmlTextAreaTester(Browser, "Summary");
            _contentTextBox                 = new HtmlTextAreaTester(Browser, "Content");
            _emailAddressTextBox            = new HtmlTextBoxTester(Browser, "EmailAddress");
            _secondaryEmailAddressesTextBox = new HtmlTextBoxTester(Browser, "SecondaryEmailAddresses");
            _phoneNumberTextBox             = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _faxNumberTextBox               = new HtmlTextBoxTester(Browser, "FaxNumber");
            _countryIdDropDownList          = new HtmlDropDownListTester(Browser, "CountryId");
            _locationTextBox                = new HtmlTextBoxTester(Browser, "Location");
            _firstNameTextBox               = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox                = new HtmlTextBoxTester(Browser, "LastName");
            _salaryLowerBoundTextBox        = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _salaryUpperBoundTextBox        = new HtmlTextBoxTester(Browser, "SalaryUpperBound");
            _packageTextBox                 = new HtmlTextBoxTester(Browser, "Package");
            _companyNameTextBox             = new HtmlTextBoxTester(Browser, "CompanyName");
            _hideCompanyCheckBox            = new HtmlCheckBoxTester(Browser, "HideCompany");
            _residencyRequiredCheckBox      = new HtmlCheckBoxTester(Browser, "ResidencyRequired");
            _industryIdsListBox             = new HtmlListBoxTester(Browser, "IndustryIds");
            _fullTimeCheckBox               = new HtmlCheckBoxTester(Browser, "FullTime");
            _partTimeCheckBox               = new HtmlCheckBoxTester(Browser, "PartTime");
            _contractCheckBox               = new HtmlCheckBoxTester(Browser, "Contract");
            _tempCheckBox                   = new HtmlCheckBoxTester(Browser, "Temp");
            _jobShareCheckBox               = new HtmlCheckBoxTester(Browser, "JobShare");
            _expiryTimeTextBox              = new HtmlTextBoxTester(Browser, "ExpiryTime");
            _hideContactDetailsCheckBox     = new HtmlCheckBoxTester(Browser, "HideContactDetails");

            _baseFeaturePack = new HtmlRadioButtonTester(Browser, "BaseFeaturePack");
            _featurePack1    = new HtmlRadioButtonTester(Browser, "FeaturePack1");
            _featurePack2    = new HtmlRadioButtonTester(Browser, "FeaturePack2");

            _accounting     = _industriesQuery.GetIndustry("Accounting");
            _administration = _industriesQuery.GetIndustry("Administration");
        }
Example #10
0
        public void TestInitialize()
        {
            _employmentHistoryUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/employmenthistory");

            _recentProfessionDropDownList = new HtmlDropDownListTester(Browser, "RecentProfession");
            _recentSeniorityDropDownList  = new HtmlDropDownListTester(Browser, "RecentSeniority");
            _industryIdsListBox           = new HtmlListBoxTester(Browser, "IndustryIds");
            _startDateMonthDropDownList   = new HtmlDropDownListTester(Browser, "StartDateMonth");
            _startDateYearDropDownList    = new HtmlDropDownListTester(Browser, "StartDateYear");
            _endDateMonthDropDownList     = new HtmlDropDownListTester(Browser, "EndDateMonth");
            _endDateYearDropDownList      = new HtmlDropDownListTester(Browser, "EndDateYear");
            _titleTextBox       = new HtmlTextBoxTester(Browser, "Title");
            _companyTextBox     = new HtmlTextBoxTester(Browser, "Company");
            _descriptionTextBox = new HtmlTextAreaTester(Browser, "Description");
        }
Example #11
0
 private void InitialiseControlTesters()
 {
     _loginIdTextBox          = new HtmlTextBoxTester(Browser, "JoinLoginId");
     _passwordTextBox         = new HtmlPasswordTester(Browser, "JoinPassword");
     _confirmPasswordTextBox  = new HtmlPasswordTester(Browser, "JoinConfirmPassword");
     _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
     _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
     _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
     _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
     _roleRadioButton         = new HtmlRadioButtonTester(Browser, "Employer");
     _industryIdsListBox      = new HtmlListBoxTester(Browser, "IndustryIds");
     _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
     _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
     _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
     _joinButton = new HtmlButtonTester(Browser, "join");
 }
Example #12
0
        public void TestInitialize()
        {
            _apiLoginUrl = new ReadOnlyApplicationUrl(true, "~/accounts/linkedin/api/login");
            _accountUrl  = new ReadOnlyApplicationUrl(true, "~/employers/linkedin");
            _settingsUrl = new ReadOnlyApplicationUrl(true, "~/employers/settings");

            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
            _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
            _industryIdsListBox      = new HtmlListBoxTester(Browser, "IndustryIds");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _joinButton = new HtmlButtonTester(Browser, "join");
        }
Example #13
0
        public void TestInitialize()
        {
            _termsUrl = new ReadOnlyApplicationUrl(true, "~/terms");
            _joinUrl = new ReadOnlyApplicationUrl(true, "~/employers/join");

            _loginIdTextBox = new HtmlTextBoxTester(Browser, "JoinLoginId");
            _passwordTextBox = new HtmlPasswordTester(Browser, "JoinPassword");
            _confirmPasswordTextBox = new HtmlPasswordTester(Browser, "JoinConfirmPassword");
            _firstNameTextBox = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox = new HtmlTextBoxTester(Browser, "LastName");
            _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
            _locationTextBox = new HtmlTextBoxTester(Browser, "Location");
            _roleRadioButton = new HtmlRadioButtonTester(Browser, "Employer");
            _industryIdsListBox = new HtmlListBoxTester(Browser, "IndustryIds");
            _emailAddressTextBox = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _acceptTermsCheckBox = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _joinButton = new HtmlButtonTester(Browser, "join");
        }