public void setup() { codeRepo = new PhoneCodeRepo(); codeRepo.add(new PhoneCD { PHONE_CD = "AA", PHONE_TX = "Home", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "BB", PHONE_TX = "Mobile", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "CC", PHONE_TX = "Batphone", MOD_DT = DateTime.Now }); /* * Add the logic here to create a new AppRepo() and then add an applicant with an * applicant_id of 1. When you do this, the next part should work. */ /* phoneRepo = new PhoneRepo(); phoneRepo.add(new Phone { PHONE_CD = "AA", PHONE_TX = 5028011112, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "BB", PHONE_TX = 5028011113, MOD_DT = DateTime.Now, APPLICANT_ID = 2, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "CC", PHONE_TX = 5028011114, MOD_DT = DateTime.Now, APPLICANT_ID = 3, CREATE_DT = DateTime.Now }); */ appRep = new AppRepo(); appRep.add(new Applicant { APPLICANT_ID = 1, FIRST_NAME_TX = "John", LAST_NAME_TX = "Stinson", MIDDLE_INITIAL_TX = "C", MOD_DT = DateTime.Now, SSN_TX = "901111134", SUFFIX_TX = "" } ); phoneRepo = new PhoneRepo(); phoneRepo.add(new Phone { PHONE_CD = "AA", PHONE_TX = 5021111111, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "BB", PHONE_TX = 5021234567, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "CC", PHONE_TX = 5027891011, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); }
public void setup() { codeRepo = new PhoneCodeRepo(); codeRepo.add(new PhoneCD { PHONE_CD = "AA", PHONE_TX = "Home", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "BB", PHONE_TX = "Mobile", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "CC", PHONE_TX = "Work", MOD_DT = DateTime.Now }); phoneRepo = new PhoneRepo(); phoneRepo.add(new Phone { PHONE_CD = "AA", PHONE_TX = 5028011112, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "BB", PHONE_TX = 5028011113, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "CC", PHONE_TX = 5028011114, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); }
public void phoneCodeSetup() { repo = new PhoneCodeRepo(); newPhone = new PhoneCD(); newPhone = new PhoneCD(); newPhone.PHONE_CD = "BB"; newPhone.PHONE_TX = "Home Phone Number"; newPhone.MOD_DT = DateTime.Now; repo.add(newPhone); newPhone = new PhoneCD(); newPhone.PHONE_CD = "CC"; newPhone.PHONE_TX = "Home Phone Number"; newPhone.MOD_DT = DateTime.Now; repo.add(newPhone); }
public void setup() { codeRepo = new PhoneCodeRepo(); codeRepo.add(new PhoneCD { PHONE_CD = "AA", PHONE_TX = "Home", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "BB", PHONE_TX = "Mobile", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "CC", PHONE_TX = "Work", MOD_DT = DateTime.Now }); /* * Add the logic here to create a new applicantRepo() and then add an applicant with an * applicant_id of 1. When you do this, the next part should work. */ phoneRepo = new PhoneRepo(); phoneRepo.add(new Phone { PHONE_CD = "AA", PHONE_TX = 5028011112, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "BB", PHONE_TX = 5028011113, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "CC", PHONE_TX = 5028011114, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); }
public void setup() { codeRepo = new PhoneCodeRepo(); codeRepo.add(new PhoneCD { PHONE_CD = "AA", PHONE_TX = "Home", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "BB", PHONE_TX = "Mobile", MOD_DT = DateTime.Now }); codeRepo.add(new PhoneCD { PHONE_CD = "CC", PHONE_TX = "Work", MOD_DT = DateTime.Now }); /* * Add the logic here to create a new applicantRepo() and then add an applicant with an * applicant_id of 1. When you do this, the next part should work. */ appRepo = new ApplicantRepo(); appRepo.add(new Applicant { APPLICANT_ID = 1, FIRST_NAME_TX = "Wes", LAST_NAME_TX = "Reisz", MIDDLE_INITIAL_TX = "T", MOD_DT = DateTime.Now, SSN_TX = "400121234", SUFFIX_TX = "" } ); phoneRepo = new PhoneRepo(); phoneRepo.add(new Phone { PHONE_CD = "AA", PHONE_TX = 5028011112, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "BB", PHONE_TX = 5028011113, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); phoneRepo.add(new Phone { PHONE_CD = "CC", PHONE_TX = 5028011114, MOD_DT = DateTime.Now, APPLICANT_ID = 1, CREATE_DT = DateTime.Now }); }
public void addPhoneCd(PhoneCodeModel phoneCd) { PhoneCodeRepo repo = new PhoneCodeRepo(); PhoneCD code = new PhoneCD(); code.MOD_DT = DateTime.Now; code.PHONE_CD = phoneCd.phoneCode; code.PHONE_TX = phoneCd.phoneCodeDescription; try { repo.add(code); } catch (Exception e) { repo.update(code); } repo = null; }