示例#1
0
        public void TestSalaryUpTo()
        {
            var employer = CreateEmployer();

            CreateJobAd(employer, "Fantastic opportunity up to $90k", null, null);
            _jobAdSalariesParserCommand.ParseJobAdSalaries(true);

            var ads = _jobAdsQuery.GetJobAds <JobAd>(_jobAdsQuery.GetOpenJobAdIds());

            Assert.AreEqual(1, ads.Count);
            Assert.AreEqual(90000M * SalaryConversionMaxToMin, ads[0].Description.ParsedSalary.LowerBound);
            Assert.AreEqual(90000M, ads[0].Description.ParsedSalary.UpperBound);
        }
示例#2
0
        public override void ExecuteTask(string[] args)
        {
            var limitToOpenJobAds = true;

            if (args != null && args.Length > 0)
            {
                bool.TryParse(args[0], out limitToOpenJobAds);
            }

            _jobAdSalariesParserCommand.ParseJobAdSalaries(limitToOpenJobAds);
        }