public void JobTitles_Is_Not_Null()
        {
            var jobTitleRepository = new JobTitleWebRepository();

            var jobTitles = jobTitleRepository.GetAllAsync().Result;

            Assert.NotNull(jobTitles);
        }
        public void JobTitles_List_Is_Not_Empty()
        {
            var jobTitleRepository = new JobTitleWebRepository();

            var jobTitles = jobTitleRepository.GetAllAsync().Result;

            Assert.NotEmpty(jobTitles);
        }
        public JsonResult Get()
        {
            IEnumerable <JobTitle> jobs;

            try
            {
                jobs = _jobsWebRepository.GetAllAsync().Result;
            }
            catch (Exception)
            {
                jobs = new List <JobTitle>();
            }
            return(Json(jobs));
        }