Example #1
0
        public void GetJobPosting()
        {
            var url = "jobtaine.com/apply";

            var retrievedJobPosting = jps.GetJobPosting(url);

            Assert.IsNotNull(retrievedJobPosting);
        }
Example #2
0
        /// <summary>
        /// Method to insert job posting to DB
        /// </summary>
        /// <param name="jobPosting"></param>
        private bool InsertJobPostingToDB(JobPosting jobPosting)
        {
            var exists = _jobPostingService.GetJobPosting(jobPosting.URL);

            if (exists == null)
            {
                return(_jobPostingService.InsertJobPosting(jobPosting));
            }
            return(false);
        }