Exemplo n.º 1
0
        public void InsertJobPosting()
        {
            JobPosting jp = new JobPosting("Software Engineer", "Jobtaine", "jobtaine.com/apply");

            var actual = jps.InsertJobPosting(jp);

            Assert.IsTrue(actual);
        }
Exemplo n.º 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);
        }