Ejemplo n.º 1
0
        public JobPostings UpdateJobPosting([FromBody] JobPostings updatedJob)
        {
            if (!ModelState.IsValid)
            {
                return(null);
            }

            return(_JobPostingService.UpdateJobPosting(updatedJob));
        }
Ejemplo n.º 2
0
        public void UpdateJobPosting()
        {
            var url         = "jobtaine.com/apply";
            var newJobTitle = "Software Developer";

            var retrievedJobPosting = jps.GetJobPosting(url);

            retrievedJobPosting.JobTitle = newJobTitle;
            var updated = jps.UpdateJobPosting(retrievedJobPosting);
            var retrievedUpdatedJobPosting = jps.GetJobPosting(url);

            Assert.IsTrue(updated);
            Assert.AreEqual(retrievedUpdatedJobPosting.JobTitle, newJobTitle);
        }