//[Test] public void AddTest() { //initialize independent entities AddQualification(); for (int x = 0; x < 200; x++) { AddAddress(); AddCandidate(); AddCourse(); AddCompany(); AddJob(); } //initialize sessions and locations for (int x = 0; x < 200; x++) { AddSessionAndLocation(); } //initialize openings foreach (var v in CompanyService.GetAllCompanies()) { AddOpening(v); } //fill in fillable positions foreach (var v in OpeningService.GetAllOpenings()) { AddPlacementAndJobHistory(v); } var jobhistory = JobHistoryService.GetAllJobHistories(); var jobs = JobService.GetAllJobs(); }
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); } }