public void CanSubmitHtmlJob() { var request = new AddVacancyRequestMessage { Security = new Services.External.JobSearch.Security { UsernameToken = _usernameToken }, Body = new AddVacancyRequestBody { orgCode = OrgCode, siteCode = SiteCode, employerID = EmployerId, vacancyTitle = "Estimating Manager II", occupationCode = "1112", vacancySuburb = "BENTLEIGH", vacancyPostcode = "3204", stateCode = "VIC", vacancyDescription = "<ul><li>Melbourne CBD</li><li>$60k+ Super</li><li>A great perm opportunity to work in an internationally acclaimed accounting firm</li></ul><b><span style=\"text-decoration:underline\">The Company</span></b> <br> This is a successful, mid tier accounting firm who has made its mark in the industry world wide. This organisation is growing rapidly and looking to expand on its current team. <br> <br> <b><span style=\"text-decoration:underline\">The Role</span></b><br> <ul> <li>Has an awareness of and builds rapport with key clients and staff </li> <li>Appointments entered as agreed. </li> <li>Answers all incoming calls for Partner's </li> <li>Messages are carefully recorded and communicated onto Partner </li> <li>Arrangements for passing messages on to Partners at clients' premises should be organised directly with the party concerned. </li> <li>Requests for meetings sensitively screened and prioritised </li> <li>Work is expected to be completed quickly and accurately </li> <li>Responsible for reviewing letters and document layout of any correspondence generated by your Partner's </li> <li>Responsible for all typing required by the Partner's.. </li> <li>Organises travel and accommodation for Partner's in accordance with firm policy </li> <li>Typed material may include: </li> <li>General correspondence, </li> <li>Dictation, </li> <li>Proposals and </li> <li>Presentation work </li> </ul> <br> This is organisation is looking for someone who has at least 2+ years professional services experience. It is also required that you have prior experience supporting high level executives.<br> <br> Applications will NOT be considered if this is not the case. <br> <br> <b><span style=\"text-decoration:underline\">Apply Today</span></b><br> Please send your resume by clicking on the apply now button", positionLimit = 1, workType = "F", //full time duration = "N", //contract daysToExpiry = 30, howToApplyCode = "PSD", // please see description contactName = "John Smith", contactPhoneAreaCode = "03", contactPhoneNumber = "85089161", vacancyType = "H", // normal returnMatchesFlag = false, yourReference = string.Empty, } }; var response = Call(request, (c, r) => c.AddVacancy(r)); AssertSuccess(response); DeleteVacancy(response.Body.vacancyID, response.Body.integrityControlNumber); var getRequest = new GetVacancyDetailsRequestMessage { Security = new Services.External.JobSearch.Security { UsernameToken = _usernameToken }, Body = new GetVacancyDetailsRequestBody { vacancyID = response.Body.vacancyID } }; var getResponse = Call(getRequest, (c, r) => c.GetVacancyDetails(r)); DeleteVacancy(getResponse.Body.vacancyID, getResponse.Body.integrityControlNumber); }
public void GetVacancyDetailsCanAuthenticate() { var request = new GetVacancyDetailsRequestMessage { Security = new Services.External.JobSearch.Security { UsernameToken = _usernameToken }, Body = new GetVacancyDetailsRequestBody { vacancyID = 206232582 } }; CanAuthenticate(request, (c, r) => c.GetVacancyDetails(r), EsiExecutionStatus.Failed, r => r.Header.executionStatus); }
public void DeleteJob() { const long vacancyToDelete = 2206429676; var getRequest = new GetVacancyDetailsRequestMessage { Security = new Services.External.JobSearch.Security { UsernameToken = _usernameToken }, Body = new GetVacancyDetailsRequestBody { vacancyID = vacancyToDelete } }; var channel = _channelManager.Create(); var response = channel.GetVacancyDetails(getRequest); _channelManager.Close(channel); if (response.Header.executionStatus == EsiExecutionStatus.Failed) { var errorMessages = string.Empty; foreach (var message in response.Header.Messages) { errorMessages += "\r\n" + message.text; } Assert.Fail(string.Format("AddVacancy failed with messages : {0}", errorMessages)); } if (response.Body.statusCode == "D") { Assert.Fail("Vacancy already deleted"); } DeleteVacancy(response.Body.vacancyID, response.Body.integrityControlNumber); }