Пример #1
0
        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"]);
        }
Пример #2
0
        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"]);
        }
Пример #3
0
        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"]);
        }
Пример #4
0
        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"]);
        }
Пример #5
0
        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"]);
        }
Пример #6
0
        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"]);
        }
Пример #7
0
        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"]);
        }
Пример #8
0
        public void ReferenceIsPopulatedFromQuery()
        {
            var query = new JobSearchQuery()
            {
                JobReference = "ABC1234"
            };
            var converter = new JobSearchQueryConverter(false);

            var collection = converter.ToCollection(query);

            Assert.AreEqual("ABC1234", collection["ref"]);
        }
Пример #9
0
        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"]);
        }