public ActionResult ApplicantInfo(ApplicantVM vm) { if (ModelState.IsValid) { if (Session["Tracker"] == null) { Session["Tracker"] = Guid.NewGuid(); } var tracker = (Guid)Session["Tracker"]; var existingApplicant = _context.Applicants.FirstOrDefault(x => x.ApplicantTracker == tracker); if (existingApplicant != null) { Mapper.Map(vm, existingApplicant); _context.Entry(existingApplicant).State = EntityState.Modified; } else { var newApplicant = Mapper.Map <Applicant>(vm); newApplicant.ApplicantTracker = tracker; _context.Applicants.Add(newApplicant); } _context.SaveChanges(); return(RedirectToAction("AddressInfo", "Address")); } return(View(vm)); }
private static void Main(string[] args) { // Configure the mappings Mapper.Initialize(cfg => { cfg.CreateMap<ApplicantSkillVM, ApplicantSkill>().ForMember(x => x.Skill, x => x.Ignore()).ReverseMap(); cfg.CreateMap<ApplicantVM, Applicant>().ReverseMap(); }); var config = new MapperConfiguration(cfg => cfg.CreateMissingTypeMaps = true); var mapper = config.CreateMapper(); ApplicantVM ap = new ApplicantVM { Name = "its me", ApplicantSkills = new List<ApplicantSkillVM> { new ApplicantSkillVM {SomeInt = 10, SomeString = "test", Skill = new Skill {SomeInt = 20}}, new ApplicantSkillVM {SomeInt = 10, SomeString = "test"} } }; List<ApplicantVM> applicantVms = new List<ApplicantVM> {ap}; // Map List<Applicant> apcants = Mapper.Map<List<ApplicantVM>, List<Applicant>>(applicantVms); }
public async Task <ActionResult> Put([FromQuery] int id, [FromBody] ApplicantVM model) { try { var applicant = _mapper.Map <Applicant>(model); applicant.ID = id; var checkexist = await _applicantService.ReadSingleAsync(id, false); if (checkexist == null) { return(NotFound()); } if (applicant != null) { await _applicantService.UpdateAsync(applicant); return(Ok("Applicant Data Update Successful")); } return(NotFound()); } catch (Exception e) { _logger.LogError(e.Message); return(BadRequest(new List <string> { "Unable to Update Applicant Data" })); } }
public async Task <ActionResult> Post([FromBody] ApplicantVM model) { try { var applicant = _mapper.Map <Applicant>(model); var createdapplicant = await _applicantService.CreateAsync(applicant); if (createdapplicant != null) { return(Created("", new ResponseData { id = createdapplicant.ID, url = $"{ this.Request.Scheme }://{this.Request.Host}{this.Request.PathBase}{ Request.Path.Value}?id={ createdapplicant.ID }" }));; } else { return(BadRequest(new List <string> { "Failed Create Applicant" })); } } catch (Exception e) { _logger.LogError(e.Message); return(BadRequest(new List <string> { "Failed Create Applicant" })); } }
public ActionResult ApplicantInfo(ApplicantVM applicantVM) { if (ModelState.IsValid) { if (Session["Tracker"] == null) { Session["Tracker"] = Guid.NewGuid(); } var tracker = (Guid)Session["Tracker"]; var existingApplicant = _applicantService.GetLazeApplicantsByTraker(tracker); if (existingApplicant != null) { Mapper.Map(applicantVM, existingApplicant); _applicantService.Update(existingApplicant); } else { var applicantDto = Mapper.Map <ApplicantDto>(applicantVM); applicantDto.ApplicantTracker = tracker; _applicantService.Create(applicantDto); } return(RedirectToAction("AddressInfo", "Address")); } return(View(applicantVM)); }
public IActionResult Add_InterviewSchemeToApplicant(ApplicantVM model) { _applicant = new Applicant(); _applicant.AddInterviewSchemeToApplicant(model); return(RedirectToAction("Index")); }
public IActionResult Pass_Edited_Applicant(ApplicantVM model) { _applicant = new Applicant(); ApplicantVM vm = new ApplicantVM(); vm = _applicant.EditApplicant(model); string Id = vm.Id.ToString(); return(RedirectToAction("Index")); }
public ActionResult ApplicantInfo() { var applicant = new ApplicantVM(); if (Session["Tracker"] != null) { var tracker = (Guid)Session["Tracker"]; applicant = Mapper.Map <ApplicantVM>(_context.Applicants.FirstOrDefault(x => x.ApplicantTracker == tracker)); } return(View(applicant)); }
public JsonResult Update(ApplicantVM model) { //client.DefaultRequestHeaders.Add("Authorization", HttpContext.Session.GetString("JWTToken")); var myContent = JsonConvert.SerializeObject(model); var buffer = System.Text.Encoding.UTF8.GetBytes(myContent); var byteContent = new ByteArrayContent(buffer); byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); var result = client.PutAsync("Applicants/" + model.Id, byteContent).Result; return(Json(result)); }
}// End SelectApplicantByID() /// <summary> /// CREATED BY: Matt Deaton /// DATE CREATED: 2020-04-11 /// APPROVED BY: Steve Coonrod /// /// Fake Accessor Layer method used to select items of an applicant /// for testing to make sure all methods are working corretly. /// /// </summary> /// <remarks> /// UPDATED BY: /// UPDATED: /// CHANGE: /// /// </remarks> /// <param name="applicantID"></param> /// <returns></returns> public ApplicantVM SelectApplicantForInterview(int applicantID) { ApplicantVM applicant = new ApplicantVM(); foreach (var app in _applicants) { if (app.ApplicantID == applicantID) { applicant = app; break; } } return(applicant); }// End SelectApplicantForInterview()
public IActionResult Get_Applicant_Modal(string id) { _applicant = new Applicant(); ApplicantVM vm = new ApplicantVM(); vm = _applicant.GetApplicant(id); _studyField = new StudyField(); _nationality = new Nationality(); _interviewer = new Interviewer(); _interviewScheme = new InterviewScheme(); var studyfields = _studyField.GetAllStudyFields(); var nationalities = _nationality.GetAllNationalities(); var interviewers = _interviewer.GetAllInterviewers(); var schemes = _interviewScheme.GetSpecificInterviewSchemes(id); foreach (var sf in studyfields) { vm.StudyFields.Add(new SelectListItem() { Text = sf.FieldName, Value = sf.Id.ToString() }); } foreach (var na in nationalities) { vm.Nationalities.Add(new SelectListItem() { Text = na.Name, Value = na.Id.ToString() }); } foreach (var inn in interviewers) { vm.Interviewers.Add(new SelectListItem() { Text = inn.Firstname + " " + inn.Lastname, Value = inn.Id.ToString() }); } foreach (var sch in schemes) { vm.InterviewSchemes.Add(new SelectListItem() { Text = sch.Name, Value = sch.Id.ToString() }); } return(PartialView("../Administration/Partials/_PopulateModalWithApplicant", vm)); }
public IActionResult Index() { _studyField = new StudyField(); _applicant = new Applicant(); _nationality = new Nationality(); _interviewer = new Interviewer(); ApplicantVM appvm; List <ApplicantVM> listapp = new List <ApplicantVM>(); var studyfields = _studyField.GetAllStudyFields(); var nationalities = _nationality.GetAllNationalities(); var interviewers = _interviewer.GetAllInterviewers(); var list = _applicant.GetAllApplicantsWithoutSchemaOrInterviewer(); foreach (var app in list) { appvm = new ApplicantVM(); appvm = app; //ApplicantVM applicant = (Applicant)app; foreach (var st in studyfields) { appvm.StudyFields.Add(new SelectListItem() { Text = st.FieldName, Value = st.Id.ToString() }); } foreach (var na in nationalities) { appvm.Nationalities.Add(new SelectListItem() { Text = na.Name, Value = na.Id.ToString() }); } foreach (var inn in interviewers) { appvm.Interviewers.Add(new SelectListItem() { Text = inn.Firstname + " " + inn.Lastname, Value = inn.Id.ToString() }); } listapp.Add(appvm); } return(View("../Administration/Index", listapp)); }
public JsonResult Insert(ApplicantVM model) { var userID = Int32.Parse(HttpContext.Session.GetString("User_Id")); model.User_Id = userID; var myContent = JsonConvert.SerializeObject(model); var buffer = System.Text.Encoding.UTF8.GetBytes(myContent); var byteContent = new ByteArrayContent(buffer); byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); var result = client.PostAsync("Applicants/RegisterApplicant", byteContent).Result; return(Json(result)); }
public void TestApplicantManagerRetrieveApplicantForInterview() { // Arrange int applicantID = 100000; ApplicantVM applicant = null; int result = 0; // Act applicant = _applicantManager.RetrieveApplicantForInterview(applicantID); if (applicant != null) { result = 1; } // Assert Assert.AreEqual(1, result); }// End TestApplicantManagerRetrieveApplicantForInterview()
// GET: Admin public ActionResult Index() { using (quoteGen2Entities1 db = new quoteGen2Entities1()) { var applicants = (from c in db.driverDatas where c.Id < 1000 select c).ToList(); var applicantVms = new List <ApplicantVM>(); foreach (var applicant in applicants) { var applicantVm = new ApplicantVM(); applicantVm.Id = applicant.Id; applicantVm.Firstname = applicant.FirstName; applicantVm.LastName = applicant.LastName; applicantVm.EmailAddress = applicant.EmailAddress; applicantVms.Add(applicantVm); } return(View(applicantVms)); } }
public ActionResult ApplicantInfo() { var applicantVM = new ApplicantVM(); if (Session["Tracker"] != null) { var tracker = (Guid)Session["Tracker"]; var applicant = Mapper.Map <ApplicantDto, ApplicantVM>(_applicantService.GetApplicantsByTraker(tracker)); if (applicant != null) { applicantVM = applicant; } else { applicantVM.ApplicantTracker = tracker; } } return(View(applicantVM)); }
public IActionResult SortByPriority() { _applicant = new Applicant(); ApplicantVM appvm; List <ApplicantVM> listapp = new List <ApplicantVM>(); var list = _applicant.GetAllApplicantsWithoutSchemaOrInterviewer(); foreach (var app in list) { appvm = new ApplicantVM(); appvm = app; listapp.Add(appvm); } var ordered = listapp.OrderBy(x => x.Priority).ToList(); return(View("../Administration/Index", ordered)); }
public JsonResult LoadProfile() { //client.DefaultRequestHeaders.Add("Authorization", HttpContext.Session.GetString("JWTToken")); var user_id = Int32.Parse(HttpContext.Session.GetString("User_Id")); //ApplicantVM applicantVM = null; //var responseTask = client.GetAsync("applicants/" + user_id); //responseTask.Wait(); //var result = responseTask.Result; //if (result.IsSuccessStatusCode) //{ // var readTask = result.Content.ReadAsAsync<IList<ApplicantVM>>(); // readTask.Wait(); // return Json(readTask.Result[0]); //} //else //{ // return Json(result); //} ApplicantVM applicant = null; var responseTask = client.GetAsync("applicants/" + user_id); responseTask.Wait(); var result = responseTask.Result; if (result.IsSuccessStatusCode) { var readTask = result.Content.ReadAsAsync <IList <ApplicantVM> >(); readTask.Wait(); applicant = readTask.Result[0]; } else { ModelState.AddModelError(string.Empty, "Server Error"); } return(Json(applicant)); }
public IActionResult SortByNonEU() { ApplicantVM appvm; _applicant = new Applicant(); List <ApplicantVM> listapp = new List <ApplicantVM>(); var list = _applicant.GetAllApplicantsWithoutSchemaOrInterviewer(); foreach (var app in list) { if (!app.IsEU) { appvm = new ApplicantVM(); appvm = app; listapp.Add(appvm); } } return(View("../Administration/Index", listapp)); }
public IActionResult Create_Applicant() { _studyField = new StudyField(); _nationality = new Nationality(); _interviewer = new Interviewer(); ApplicantVM vm = new ApplicantVM(); var studyfields = _studyField.GetAllStudyFields(); var nationalities = _nationality.GetAllNationalities(); var interviewers = _interviewer.GetAllInterviewers(); foreach (var sf in studyfields) { vm.StudyFields.Add(new SelectListItem() { Text = sf.FieldName, Value = sf.Id.ToString() }); } foreach (var na in nationalities) { vm.Nationalities.Add(new SelectListItem() { Text = na.Name, Value = na.Id.ToString() }); } foreach (var inn in interviewers) { vm.Interviewers.Add(new SelectListItem() { Text = inn.Firstname + " " + inn.Lastname, Value = inn.Id.ToString() }); } return(View("../Administration/Create_Applicant", vm)); }
//[ValidateAntiForgeryToken] public async Task <IActionResult> Apply([FromRoute] int?id, [FromForm] ApplicantVM vm) { if (id == null) { return(NotFound()); } var post = await _postRep.GetAsync(id); if (post == null) { return(NotFound()); } //validation for vm.Cv file in file type and size if (ModelState.IsValid) { await _postRep.AddApplicant(vm, post); return(RedirectToAction("Applied")); } return(View(vm)); }
public IActionResult Get_InterviewScheme_Modal(string id) { _interviewScheme = new InterviewScheme(); var schemes = _interviewScheme.GetSpecificInterviewSchemes(id); List <SelectListItem> list = new List <SelectListItem>(); foreach (var sch in schemes) { list.Add(new SelectListItem() { Text = sch.Name, Value = sch.Id.ToString() }); } ApplicantVM vm = new ApplicantVM() { Id = Guid.Parse(id), InterviewSchemes = list }; return(PartialView("../Administration/Partials/_PopulateModalWithInterviewSchemes", vm)); }
public IActionResult Get_Interview_Modal(string id) { _interviewer = new Interviewer(); var interviewers = _interviewer.GetAllInterviewers(); List <SelectListItem> list = new List <SelectListItem>(); foreach (var inn in interviewers) { list.Add(new SelectListItem() { Text = inn.Firstname + " " + inn.Lastname, Value = inn.Id.ToString() }); } ApplicantVM vm = new ApplicantVM() { Id = Guid.Parse(id), Interviewers = list }; return(PartialView("../Administration/Partials/_PopulateModalWithInterviewers", vm)); }
}// End SelectApplicantByID() /// <summary> /// CREATED BY: Matt Deaton /// DATE CREATED: 2020-04-11 /// APPROVED BY: Steve Coonrod /// /// Accessor Layer method used to select items of an applicant /// from the database to be used for an interview. /// /// </summary> /// <remarks> /// UPDATED BY: /// UPDATED: /// CHANGE: /// /// </remarks> /// <param name="applicantID"></param> /// <returns></returns> public ApplicantVM SelectApplicantForInterview(int applicantID) { ApplicantVM applicant = null; var conn = DBConnection.GetConnection(); var cmd = new SqlCommand("sp_select_applicant_for_interview", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@ApplicantID", applicantID); try { conn.Open(); var reader = cmd.ExecuteReader(); if (reader.HasRows) { reader.Read(); applicant = new ApplicantVM() { ApplicantID = reader.GetInt32(0), FirstName = reader.GetString(1), LastName = reader.GetString(2), MiddleName = reader.IsDBNull(3) ? "" : reader.GetString(3), Email = reader.GetString(4), PhoneNumber = reader.GetString(5), AddressLineOne = reader.GetString(6), AddressLineTwo = reader.IsDBNull(7) ? "" : reader.GetString(7), City = reader.GetString(8), State = reader.GetString(9), Zipcode = reader.GetString(10), ApplicationPostion = reader.GetString(11), SchoolName = reader.GetString(12), SchoolCity = reader.GetString(13), SchoolState = reader.GetString(14), SchoolLevel = reader.GetString(15), ReferenceName = reader.GetString(16), ReferenceNameRelationship = reader.GetString(17), ReferenceNamePhoneNumber = reader.GetString(18), ReferenceNameEmail = reader.GetString(19), ApplicantStatus = reader.GetString(20), ResumePath = reader.GetString(21), InterviewNotes = reader.GetString(22), ApplicantSkills = reader.GetString(23), PreviousWorkName = reader.GetString(24), PreviousWorkCity = reader.GetString(25), PreviousWorkState = reader.GetString(26), PreviousWorkType = reader.GetString(27), ApplicationID = reader.GetInt32(28), HomeCheckDate = reader[29] as DateTime? }; } } catch (Exception up) { throw up; } finally { conn.Close(); } return(applicant); }// End SelectApplicantForInterview()
public async Task <ActionResult> Register([FromBody] ApplicantVM model) { Biodata biodata = new Biodata(); biodata.IdCard = model.IdCard; biodata.FirstName = model.FirstName; biodata.LastName = model.LastName; biodata.PlaceOfDate = model.PlaceOfDate; biodata.BirthDate = model.BirthDate; biodata.Religion = model.Religion; biodata.Gender = model.Gender; biodata.PhoneNumber = model.PhoneNumber; biodata.Address = model.Address; biodata.MaritalStatus = model.MaritalStatus; var result1 = await _biodataRepository.PostAsync(biodata); EducationalDetails education = new EducationalDetails(); education.Level = model.Level; education.Name = model.Name; education.Majors = model.Majors; education.YearOfEntry = model.YearOfEntry; education.GraduationYear = model.GraduationYear; education.Place = model.Place; education.FinalValue = model.FinalValue; var result2 = await _educationalDetailsRepository.PostAsync(education); WorkExperience workexp = new WorkExperience(); workexp.CompanyName = model.CompanyName; workexp.LastPosition = model.LastPosition; workexp.TypeOfBussiness = model.TypeOfBussiness; workexp.YearStartedWorking = model.YearStartedWorking; workexp.YearOfResign = model.YearOfResign; workexp.LastSalary = model.LastSalary; var result3 = await _workExperienceRepository.PostAsync(workexp); Document document = new Document(); document.fIdCard = model.fIdCard; document.fResume = model.fResume; document.fCV = model.fCV; document.fFamilyCard = model.fFamilyCard; document.fTranscripts = model.fTranscripts; document.fDiploma = model.fDiploma; document.fCertificate = model.fCertificate; var result4 = await _documentRepository.PostAsync(document); if (result1 != null && result2 != null && result3 != null && result4 != null) { Applicant applicant = new Applicant(); applicant.Biodata_Id = biodata.Id; applicant.EducationalDetails_Id = education.Id; applicant.Document_Id = document.Id; applicant.WorkExperience_Id = workexp.Id; applicant.User_Id = model.User_Id; await _applicantRepository.PostAsync(applicant); return(Ok("Registered Applicant Success!")); } else { return(BadRequest("Failed to register!")); } }
private void DealForm_Load(object sender, EventArgs e) { try { List <EmployeeVM> Elist = Elogic.Read(null); if (Elist != null) { comboBoxEmployee.DisplayMember = "Surname"; comboBoxEmployee.ValueMember = "Id"; comboBoxEmployee.DataSource = Elist; comboBoxEmployee.SelectedItem = null; } List <ApplicantVM> Alist = Alogic.Read(null); if (Alist != null) { comboBoxApplicant.DisplayMember = "Surname"; comboBoxApplicant.ValueMember = "Id"; comboBoxApplicant.DataSource = Alist; comboBoxApplicant.SelectedItem = null; } List <VacancyVM> Vlist = Vlogic.Read(new VacancyBM { Employment = false }); if (Vlist != null) { comboBoxVacancy.DisplayMember = "Position"; comboBoxVacancy.ValueMember = "Id"; comboBoxVacancy.DataSource = Vlist; comboBoxVacancy.SelectedItem = null; } if (id.HasValue) { var view = Dlogic.Read(new DealBM { Id = id })?[0]; if (view != null) { dateTimePickerDate.Value = view.Date; EmployeeVM employee = Elogic.Read(new EmployeeBM { Id = view.EmployeeId })?[0]; foreach (var currentEmployee in Elist) { if (currentEmployee.Id == employee.Id) { comboBoxEmployee.SelectedItem = currentEmployee; } } ApplicantVM applicant = Alogic.Read(new ApplicantBM { Id = view.ApplicantId })?[0]; foreach (var currentApplicant in Alist) { if (currentApplicant.Id == applicant.Id) { comboBoxApplicant.SelectedItem = currentApplicant; } } Vlist = Vlogic.Read(new VacancyBM { Employment = true }); VacancyVM vacancy = Vlogic.Read(new VacancyBM { Id = view.VacancyId })?[0]; foreach (var currentVacancy in Vlist) { if (currentVacancy.Id == vacancy.Id) { comboBoxVacancy.SelectedItem = currentVacancy; } } Vlist = Vlogic.Read(new VacancyBM { Employment = false }); if (Elist != null) { comboBoxVacancy.DisplayMember = "Position"; comboBoxVacancy.ValueMember = "Id"; comboBoxVacancy.DataSource = Vlist; } } } } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// CREATED BY: Matt Deaton /// DATE CREATED: 2020-04-07 /// APPROVED BY: Steve Coonrod /// /// Constructor for initializing and applicant and applicant manager object. /// /// </summary> /// <remarks> /// UPDATED BY: /// UPDATED: /// CHANGE: /// </remarks> /// <param name="applicant"></param> /// <param name="applicantManager"></param> public InterviewApplicant(ApplicantVM applicant, IApplicantManager applicantManager) { InitializeComponent(); _applicant = applicant; _applicantManager = applicantManager; } // End Constructor
public void TestApplicantManagerEditHomeCheckDate() { // Arrange ApplicantVM oldApplicant = new ApplicantVM() { FirstName = "Dwight", MiddleName = "Kurt", LastName = "Schrute", Email = "*****@*****.**", PhoneNumber = "16415210932", AddressLineOne = "3142 Schrute Farms Road", AddressLineTwo = "", City = "Scranton", State = "PA", Zipcode = "18503", Foster = true, ApplicantStatus = "Pending Interview", ApplicationID = 100000, ApplicationPostion = "Foster", InterviewNotes = "Applicant states they have a large beet farm where the dog could run around. Many other animals on farm.", HomeCheckDate = DateTime.Now, SchoolName = "Scranton High", SchoolCity = "Scranton", SchoolState = "PA", SchoolLevel = "Diploma", ReferenceName = "Michael Scott", ReferenceNameRelationship = "Current Boss", ReferenceNamePhoneNumber = "16415210931", ReferenceNameEmail = "*****@*****.**", PreviousWorkName = "Dunder Mifflin", PreviousWorkCity = "Scranton", PreviousWorkState = "PA", PreviousWorkType = "Sales", ApplicantSkills = "Hard Worker", ResumePath = "scrute_dwight.doc" }; ApplicantVM newApplicant = new ApplicantVM() { FirstName = "Dwight", MiddleName = "Kurt", LastName = "Schrute", Email = "*****@*****.**", PhoneNumber = "16415210932", AddressLineOne = "3142 Schrute Farms Road", AddressLineTwo = "", City = "Scranton", State = "PA", Zipcode = "18503", Foster = true, ApplicantStatus = "Pending Interview", ApplicationID = 100000, ApplicationPostion = "Kennel Cleaner", InterviewNotes = "Applicant states they have a large beet farm where the dog could run around. Many other animals on farm.", HomeCheckDate = DateTime.Now.AddDays(2), SchoolName = "Scranton High", SchoolCity = "Scranton", SchoolState = "PA", SchoolLevel = "Diploma", ReferenceName = "Michael Scott", ReferenceNameRelationship = "Current Boss", ReferenceNamePhoneNumber = "16415210931", ReferenceNameEmail = "*****@*****.**", PreviousWorkName = "Dunder Mifflin", PreviousWorkCity = "Scranton", PreviousWorkState = "PA", PreviousWorkType = "Sales", ApplicantSkills = "Hard Worker", ResumePath = "scrute_dwight.doc" }; // Act bool result = false; result = _applicantManager.EditHomeCheckDate(oldApplicant.ApplicationID, oldApplicant.HomeCheckDate, newApplicant.HomeCheckDate); // Assert Assert.AreEqual(true, result); }// End TestApplicantManagerEditHomeCheckDate()
public void TestApplicantManagerEditApplicationStatus() { // Arrange ApplicantVM oldApplicant = new ApplicantVM() { FirstName = "Dwight", MiddleName = "Kurt", LastName = "Schrute", Email = "*****@*****.**", PhoneNumber = "16415210932", AddressLineOne = "3142 Schrute Farms Road", AddressLineTwo = "", City = "Scranton", State = "PA", Zipcode = "18503", Foster = false, ApplicantStatus = "Pending Interview", ApplicationID = 100000, ApplicationPostion = "Kennel Cleaner", InterviewNotes = "Applied for Kennel Cleaner, but he wanted to be a Sales Person", HomeCheckDate = null, SchoolName = "Scranton High", SchoolCity = "Scranton", SchoolState = "PA", SchoolLevel = "Diploma", ReferenceName = "Michael Scott", ReferenceNameRelationship = "Current Boss", ReferenceNamePhoneNumber = "16415210931", ReferenceNameEmail = "*****@*****.**", PreviousWorkName = "Dunder Mifflin", PreviousWorkCity = "Scranton", PreviousWorkState = "PA", PreviousWorkType = "Sales", ApplicantSkills = "Hard Worker", ResumePath = "scrute_dwight.doc" }; ApplicantVM newApplicant = new ApplicantVM() { FirstName = "Dwight", MiddleName = "Kurt", LastName = "Schrute", Email = "*****@*****.**", PhoneNumber = "16415210932", AddressLineOne = "3142 Schrute Farms Road", AddressLineTwo = "", City = "Scranton", State = "PA", Zipcode = "18503", Foster = false, ApplicantStatus = "Declined", ApplicationID = 100000, ApplicationPostion = "Kennel Cleaner", InterviewNotes = "Applied for Kennel Cleaner, but he wanted to be a Sales Person", HomeCheckDate = null, SchoolName = "Scranton High", SchoolCity = "Scranton", SchoolState = "PA", SchoolLevel = "Diploma", ReferenceName = "Michael Scott", ReferenceNameRelationship = "Current Boss", ReferenceNamePhoneNumber = "16415210931", ReferenceNameEmail = "*****@*****.**", PreviousWorkName = "Dunder Mifflin", PreviousWorkCity = "Scranton", PreviousWorkState = "PA", PreviousWorkType = "Sales", ApplicantSkills = "Hard Worker", ResumePath = "scrute_dwight.doc" }; // Act bool result = false; result = _applicantManager.EditApplicationStatus(oldApplicant.ApplicationID, oldApplicant.ApplicantStatus, newApplicant.ApplicantStatus); // Assert Assert.AreEqual(true, result); }// End TestApplicantManagerEditApplicationStatus()
}// End dgViewAllApplicants_AutoGeneratedColumns() /// <summary> /// CREATED BY: Matt Deaton /// DATE: 2020-04-11 /// CHECKED BY: Steve Coonrod /// /// Method that to Retrieve applicant details using a Applicant Manager method. /// /// </summary> /// <remarks> /// UPDATED BY: /// UPDATED: /// CHANGE: /// </remarks> private void retrieveApplicantDetails() { Applicant applicant = (Applicant)dgViewAllApplicants.SelectedItem; _applicantVM = _applicantManager.RetrieveApplicantForInterview(applicant.ApplicantID); }// End retrieveApplicantDetails()