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() }); } }
public JobApplicant Insert(JobApplicant entity) { entity.Status = JobApplicantStatus.InProcess; return(_repository.Insert(entity)); }