public void ContractTypeIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.ContractTypes.Add("Contract type"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Contract type", collection["contracttypes"]); }
public void JobTypeIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.JobTypes.Add("Example job type"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Example job type", collection["jobtypes"]); }
public void WorkingPatternIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.WorkPatterns.Add("Working pattern"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Working pattern", collection["workpatterns"]); }
public void PayGradeIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.PayGrades.Add("Single Status"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Single Status", collection["paygrades"]); }
public void MaximumSalaryRangeIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.SalaryRanges.Add("£50000 and over"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("£50000 and over", collection["salaryranges"]); }
public void OrganisationIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.Organisations.Add("Example organisation"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Example organisation", collection["org"]); }
public void DepartmentIsPopulatedFromQuery() { var query = new JobSearchQuery(); query.Departments.Add("Example department"); var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("Example department", collection["department"]); }
public void ReferenceIsPopulatedFromQuery() { var query = new JobSearchQuery() { JobReference = "ABC1234" }; var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("ABC1234", collection["ref"]); }
public void KeywordsArePopulatedFromQuery() { var query = new JobSearchQuery() { Keywords = "this is a test" }; var converter = new JobSearchQueryConverter(false); var collection = converter.ToCollection(query); Assert.AreEqual("this is a test", collection["keywords"]); }