private void LoadQualifications() { Qualifications.Clear(); var qualifications = QualificationsService.GetAllQualifications(); foreach (var v in qualifications) { Qualifications.Add(v); } }
public void AddTest() { var random = new Random(); Candidate = CandidateService.GetAllCandidates()[random.Next(100)]; Qualification = QualificationsService.GetAllQualifications()[random.Next(10)]; CandidateQualification = CandidateQualificationService.AddQualificationToCandidate(new Candidate_Qualification() { Candidate = Candidate, Qualification = Qualification, }); }
private void AddOpening(Company v) { var randomJob = JobService.GetAllJobs()[random.Next(100)]; var randomQualification = QualificationsService.GetAllQualifications()[random.Next(10)]; var newOpening = new Opening() { Company = v, Job = randomJob, RequiredQualification = randomQualification }; OpeningService.AddOpening(newOpening); }
public void AddTest() { var random = new Random(); Qualification = QualificationsService.GetAllQualifications()[random.Next(10)]; Course = CourseService.GetAllCourses()[random.Next(100)]; PrerequisitesForCourse = PrerequisitesForCourseService.Add(new PrerequisitesForCourse() { Qualification = Qualification, QualificationId = Qualification.Id, Course = Course, CourseId = Course.Id }); }
public void AddTest() { var random = new Random(); Qualification = QualificationsService.GetAllQualifications()[random.Next(10)]; Course = CourseService.GetAllCourses()[random.Next(100)]; QualificationDevelopedByCourse = QualificationDevelopedByCourseService.Add( new QualificationDevelopedByCourse() { Course = Course, CourseId = Course.Id, Qualification = Qualification, QualificationId = Qualification.Id }); }
public void RemoveTest() { foreach (var v in QualificationsService.GetAllQualifications()) { QualificationsService.RemoveQualification(v); } foreach (var v in AddressCandidateService.GetAllAddressCandidatePairs()) { AddressCandidateService.Remove(v); } foreach (var v in AddressService.GetAllAdresses()) { AddressService.RemoveAddress(v); } foreach (var v in CandidateQualificationService.GetAll()) { CandidateQualificationService.RemoveQualificationFromCandidate(v.CandidateId, v.QualificationId); } foreach (var v in CandidateService.GetAllCandidates()) { CandidateService.RemoveCandidate(v); } foreach (var v in CompanyService.GetAllCompanies()) { CompanyService.RemoveCompany(v); } foreach (var v in CourseService.GetAllCourses()) { CourseService.RemoveCourse(v); } foreach (var v in JobHistoryCompanyService.GetAll()) { JobHistoryCompanyService.Remove(v.JobHistoryId, v.CompanyId); } foreach (var v in JobHistoryJobService.GetAll()) { JobHistoryJobService.Remove(v.JobHistoryId, v.JobId); } foreach (var v in JobHistoryService.GetAllJobHistories()) { JobHistoryService.RemoveJobHistory(v); } foreach (var v in JobService.GetAllJobs()) { JobService.RemoveJob(v); } foreach (var v in LocationService.GetAllLocations()) { LocationService.RemoveLocation(v); } foreach (var v in OpeningService.GetAllOpenings()) { OpeningService.RemoveOpening(v); } foreach (var v in PlacementService.GetAllPlacements()) { PlacementService.RemovePlacement(v); } foreach (var v in PrerequisitesForCourseService.GetAll()) { PrerequisitesForCourseService.Remove(v.CourseId, v.QualificationId); } foreach (var v in QualificationDevelopedByCourseService.GetAll()) { QualificationDevelopedByCourseService.Remove(v.CourseId, v.QualificationId); } }