public void JobG8TestsInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); _emailServer.ClearEmails(); _jobG8Server = JobG8Host.Start(); _jobG8Server.ClearRequests(); _questionsCoverLetterTextBox = new HtmlTextAreaTester(Browser, "CoverLetter"); _visaDropDownList = new QuestionDropDownListTester(Browser, "78_605"); _phoneNumberTextBox = new QuestionTextBoxTester(Browser, "8"); _mobileTextBox = new QuestionTextBoxTester(Browser, "10"); _availabilityDropDownList = new QuestionDropDownListTester(Browser, "19"); _salaryDropDownList = new QuestionDropDownListTester(Browser, "13"); _questionTesters = new QuestionControlTester[] { _visaDropDownList, _phoneNumberTextBox, _mobileTextBox, _availabilityDropDownList, _salaryDropDownList }; _sendButton = new HtmlButtonTester(Browser, "send"); }
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(); } }