Exemplo n.º 1
0
        private void LoadJobApplicant()
        {
            int numberJobApplicants = 20;

            var users = _userRepository.GetAll();
            var jobs  = _jobRepository.GetAll();

            for (int i = 0; i < numberJobApplicants; i++)
            {
                _jobApplicantRepository.Insert(new JobApplicant()
                {
                    IdApplicant = users[_random.Next(users.Count)].Id,
                    IdJob       = jobs[_random.Next(jobs.Count)].Id,
                    SalaryClaim = RamdomValue()
                });
            }
        }
Exemplo n.º 2
0
        public JobApplicant Insert(JobApplicant entity)
        {
            entity.Status = JobApplicantStatus.InProcess;

            return(_repository.Insert(entity));
        }