Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Add this code inside your test class. To use it, use the following syntax
- * in your test method:
- *
- * TestDatabase db = new TestDatabase();
- *
- * Afterward you can retrieve test records using the getter methods defined
- * inside the TestDatabase class.
- *
- * @author HardBoil
- */
- private class TestDatabase {
- private Map<Id, Compensation_Rate__c> compensationRateMap;
- private Map<String, Compensation_Rate__c> compensationRateMapByName;
- private Map<Id, Account> accountMap;
- private Map<String, Account> accountMapByNUID;
- private Map<Id, License_Certification__c> licenseCertificationMap;
- private Map<Id, Term__c> termMap;
- private Map<String, Term__c> termMapByName;
- private Map<String, Term__c> termMapByBannerCode;
- private Map<Id, Part_of_Term__c> partofTermMap;
- private Map<String, Part_of_Term__c> partofTermMapByName;
- private Map<Id, Part_of_Term_Paydate__c> partofTermPaydateMap;
- private Map<Id, Course__c> courseMap;
- private Map<String, Course__c> courseMapByName;
- private Map<Id, Class__c> classMap;
- private Map<String, Class__c> classMapByName;
- private Map<String, Class__c> classMapByName;
- private Map<Id, Class_Meeting__c> classMeetingMap;
- private Map<Id, Contract> contractMap;
- /**
- * Default constructor.
- */
- public TestDatabase() {
- // Create the Compensation_Rate__c records.
- List<Compensation_Rate__c> compensationRates = new List<Compensation_Rate__c> {
- new Compensation_Rate__c(
- Name = 'Superhero Lecturer ($833.33/credit)',
- RecordTypeId = CompensationRateUtil.getRecordTypeId('Base Contract Pay'),
- Rate_Type__c = 'Per Credit Hour',
- Amount__c = 833.33
- )
- };
- insert compensationRates;
- compensationRateMap = new Map<Id, Compensation_Rate__c>(compensationRates);
- compensationRateMapByName = new Map<String, Compensation_Rate__c>();
- for (Compensation_Rate__c compensationRate : compensationRates) {
- compensationRateMapByName.put(compensationRate.Name, compensationRate);
- } // for (Compensation_Rate__c compensationRate : compensationRates)
- // Create the Account records.
- List<Account> accounts = new List<Account> {
- new Account(
- FirstName = 'Bruce',
- LastName = 'Wayne',
- NUID__c = '800000001',
- RecordTypeId = AccountUtil.getRecordTypeId('Person Account')
- ),
- new Account(
- FirstName = 'Benjamin',
- LastName = 'Grimm',
- NUID__c = '800000002',
- RecordTypeId = AccountUtil.getRecordTypeId('Person Account')
- )
- };
- insert accounts;
- accountMap = new Map<Id, Account>(accounts);
- accountMapByNUID = new Map<String, Account>();
- for (Account account : accounts) {
- accountMapByNUID.put(account.NUID__c, account);
- } // for (Account account : accounts)
- // Create the License_Certification__c records.
- List<License_Certification__c> licenseCertifications = new List<License_Certification__c> {
- new License_Certification__c(
- Account__c = getAccountByNUID('800000001').Id,
- Type__c = 'Certification',
- License_Certification__c = 'CPS Certified Online Instructor',
- Issued_Date__c = Date.parse('1/1/2020'),
- Expiration_Date__c = Date.parse('1/1/2021')
- ),
- new License_Certification__c(
- Account__c = getAccountByNUID('800000002').Id,
- Type__c = 'Certification',
- License_Certification__c = 'CPS Certified Online Instructor',
- Issued_Date__c = Date.parse('1/1/2020'),
- Expiration_Date__c = Date.parse('1/1/2021')
- ),
- new License_Certification__c(
- Account__c = getAccountByNUID('800000001').Id,
- Type__c = 'Certification',
- License_Certification__c = 'CPS Certified Online Instructor',
- Issued_Date__c = Date.parse('1/1/2021'),
- Expiration_Date__c = Date.parse('1/1/2022')
- )
- };
- insert licenseCertifications;
- licenseCertificationMap = new Map<Id, License_Certification__c>(licenseCertifications);
- // Create the Term__c records.
- List<Term__c> terms = new List<Term__c> {
- new Term__c(
- Name = 'Winter 2022 CPS Quarter',
- Banner_Code__c = '202225',
- Start_Date__c = Date.parse('1/1/2022'),
- Academic_Year__c = '2022'
- )
- };
- insert terms;
- termMap = new Map<Id, Term__c>(terms);
- termMapByName = new Map<String, Term__c>();
- termMapByBannerCode = new Map<String, Term__c>();
- for (Term__c term : terms) {
- termMapByName.put(term.Name, term);
- termMapByBannerCode.put(term.Banner_Code__c, term);
- } // for (Term__c term : terms)
- // Create the Part_of_Term__c records.
- List<Part_of_Term__c> partofTerms = new List<Part_of_Term__c> {
- new Part_of_Term__c(
- Name = 'Winter 2022, Full Term Session',
- Term__c = getTermByName('Winter 2022 CPS Quarter').Id,
- Banner_Part_of_Term_Code__c = '1',
- Short_Name__c = 'Winter 2022, Full Term Session',
- Start_Date__c = Date.parse('1/1/2022')
- ),
- new Part_of_Term__c(
- Name = 'Winter 2022, First Six-week Session',
- Term__c = getTermByName('Winter 2022 CPS Quarter').Id,
- Banner_Part_of_Term_Code__c = 'A',
- Short_Name__c = 'Winter 2022, First Six-week Session',
- Start_Date__c = Date.parse('1/1/2022')
- ),
- new Part_of_Term__c(
- Name = 'Winter 2022, Second Six-week Session',
- Term__c = getTermByName('Winter 2022 CPS Quarter').Id,
- Banner_Part_of_Term_Code__c = 'B',
- Short_Name__c = 'Winter 2022, Second Six-week Session',
- Start_Date__c = Date.parse('3/1/2022')
- )
- };
- insert partofTerms;
- partofTermMap = new Map<Id, Part_of_Term__c>(partofTerms);
- partofTermMapByName = new Map<String, Part_of_Term__c>();
- for (Part_of_Term__c partofTerm : partofTerms) {
- partofTermMapByName.put(partofTerm.Name, partofTerm);
- } // for (Part_of_Term__c partofTerm : partofTerms)
- // Create the Part_of_Term_Paydate__c records.
- List<Part_of_Term_Paydate__c> partofTermPaydates = new List<Part_of_Term_Paydate__c> {
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, First Six-week Session').Id,
- Pay_Start_Date__c = Date.parse('2/1/2022'),
- Pay_End_Date__c = Date.parse('2/28/2022'),
- Pay_Check_Date__c = Date.parse('2/28/2022'),
- Last_Paydate__c = true,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, First Six-week Session').Id,
- Pay_Start_Date__c = Date.parse('1/1/2022'),
- Pay_End_Date__c = Date.parse('1/31/2022'),
- Pay_Check_Date__c = Date.parse('1/31/2022'),
- Last_Paydate__c = false,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Pay_Start_Date__c = Date.parse('2/1/2022'),
- Pay_End_Date__c = Date.parse('2/28/2022'),
- Pay_Check_Date__c = Date.parse('2/28/2022'),
- Last_Paydate__c = false,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Pay_Start_Date__c = Date.parse('1/1/2022'),
- Pay_End_Date__c = Date.parse('1/31/2022'),
- Pay_Check_Date__c = Date.parse('1/31/2022'),
- Last_Paydate__c = false,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Pay_Start_Date__c = Date.parse('3/1/2022'),
- Pay_End_Date__c = Date.parse('3/31/2022'),
- Pay_Check_Date__c = Date.parse('3/30/2022'),
- Last_Paydate__c = false,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Pay_Start_Date__c = Date.parse('4/1/2022'),
- Pay_End_Date__c = Date.parse('4/30/2022'),
- Pay_Check_Date__c = Date.parse('4/30/2022'),
- Last_Paydate__c = true,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Second Six-week Session').Id,
- Pay_Start_Date__c = Date.parse('3/1/2022'),
- Pay_End_Date__c = Date.parse('3/31/2022'),
- Pay_Check_Date__c = Date.parse('3/30/2022'),
- Last_Paydate__c = false,
- Available_to_Pay__c = true
- ),
- new Part_of_Term_Paydate__c(
- Part_of_Term__c = getPartofTermByName('Winter 2022, Second Six-week Session').Id,
- Pay_Start_Date__c = Date.parse('4/1/2022'),
- Pay_End_Date__c = Date.parse('4/30/2022'),
- Pay_Check_Date__c = Date.parse('4/22/2022'),
- Last_Paydate__c = true,
- Available_to_Pay__c = true
- )
- };
- insert partofTermPaydates;
- partofTermPaydateMap = new Map<Id, Part_of_Term_Paydate__c>(partofTermPaydates);
- // Create the Course__c records.
- List<Course__c> courses = new List<Course__c> {
- new Course__c(
- Name = 'DCC1001',
- RecordTypeId = CourseUtil.getRecordTypeId('Banner Course'),
- Title__c = 'Introduction to DC Comics',
- Status__c = 'A'
- )
- };
- insert courses;
- courseMap = new Map<Id, Course__c>(courses);
- courseMapByName = new Map<String, Course__c>();
- for (Course__c course : courses) {
- courseMapByName.put(course.Name, course);
- } // for (Course__c course : courses)
- // Create the Class__c records.
- List<Class__c> classes = new List<Class__c> {
- new Class__c(
- Name = '202215-80001',
- CRN__c = '80001',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 1,
- Banner_Instructional_Method_Code__c = 'TR',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80002',
- CRN__c = '80002',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 1,
- Banner_Instructional_Method_Code__c = 'TR',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80003',
- CRN__c = '80003',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 2,
- Banner_Instructional_Method_Code__c = 'BL',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80004',
- CRN__c = '80004',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 3,
- Banner_Instructional_Method_Code__c = 'TR',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80005',
- CRN__c = '80005',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 4,
- Banner_Instructional_Method_Code__c = 'HY',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80006',
- CRN__c = '80006',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 5,
- Banner_Instructional_Method_Code__c = 'TR',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80007',
- CRN__c = '80007',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 6,
- Banner_Instructional_Method_Code__c = 'TR',
- Status__c = 'A'
- ),
- new Class__c(
- Name = '202215-80008',
- CRN__c = '80008',
- Course__c = getCourseByName('DCC1001').Id,
- Part_of_Term__c = getPartofTermByName('Winter 2022, Full Term Session').Id,
- Credit_Hours__c = 3,
- Actual_Enrollment__c = 7,
- Banner_Instructional_Method_Code__c = 'BL',
- Status__c = 'A'
- )
- };
- insert classes;
- classMap = new Map<Id, Class__c>(classes);
- classMapByName = new Map<String, Class__c>();
- classMapByName = new Map<String, Class__c>();
- for (Class__c class_x : classes) {
- classMapByName.put(class_x.Name, class_x);
- classMapByName.put(class.Name, class);
- } // for (Class__c class_x : classes)
- // Create the Class_Meeting__c records.
- List<Class_Meeting__c> classMeetings = new List<Class_Meeting__c> {
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('1/19/2022'),
- End_Date__c = Date.parse('1/19/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('1/20/2022'),
- End_Date__c = Date.parse('1/20/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('2/2/2022'),
- End_Date__c = Date.parse('2/2/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('2/27/2022'),
- End_Date__c = Date.parse('2/27/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('3/11/2022'),
- End_Date__c = Date.parse('3/11/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80001').Id,
- Start_Date__c = Date.parse('3/15/2022'),
- End_Date__c = Date.parse('3/15/2022'),
- Start_Time__c = '1330',
- End_Time__c = '1530',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = 'R',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80002').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '0830',
- End_Time__c = '1030',
- Monday__c = 'M',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80003').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '1130',
- End_Time__c = '1400',
- Monday__c = 'M',
- Tuesday__c = '',
- Wednesday__c = 'W',
- Thursday__c = '',
- Friday__c = 'F',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80004').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '1400',
- End_Time__c = '1600',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = 'U'
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80004').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('1/9/2022'),
- Start_Time__c = '1300',
- End_Time__c = '1500',
- Monday__c = '',
- Tuesday__c = 'T',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80004').Id,
- Start_Date__c = Date.parse('1/28/2022'),
- End_Date__c = Date.parse('1/28/2022'),
- Start_Time__c = '1300',
- End_Time__c = '1500',
- Monday__c = '',
- Tuesday__c = 'T',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80004').Id,
- Start_Date__c = Date.parse('2/9/2022'),
- End_Date__c = Date.parse('2/9/2022'),
- Start_Time__c = '1300',
- End_Time__c = '1500',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = 'S',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80004').Id,
- Start_Date__c = Date.parse('2/19/2022'),
- End_Date__c = Date.parse('2/19/2022'),
- Start_Time__c = '1300',
- End_Time__c = '1500',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = 'S',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80005').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '',
- End_Time__c = '',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80006').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '0400',
- End_Time__c = '0550',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80007').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '0930',
- End_Time__c = '1200',
- Monday__c = 'M',
- Tuesday__c = 'T',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = ''
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80007').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '0930',
- End_Time__c = '1200',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = 'W',
- Thursday__c = '',
- Friday__c = '',
- Saturday__c = '',
- Sunday__c = 'U'
- ),
- new Class_Meeting__c(
- Class_ID__c = getClassByName('202215-80007').Id,
- Start_Date__c = Date.parse('1/9/2022'),
- End_Date__c = Date.parse('4/19/2022'),
- Start_Time__c = '0930',
- End_Time__c = '1200',
- Monday__c = '',
- Tuesday__c = '',
- Wednesday__c = '',
- Thursday__c = '',
- Friday__c = 'F',
- Saturday__c = '',
- Sunday__c = ''
- )
- };
- insert classMeetings;
- classMeetingMap = new Map<Id, Class_Meeting__c>(classMeetings);
- // Create the Contract records.
- List<Contract> contracts = new List<Contract> {
- new Contract(
- AccountID = getAccountByNUID('800000001').Id,
- Status = 'Draft',
- Academic_Year__c = '2021-2022',
- RecordTypeId = ContractUtil.getRecordTypeId('Faculty Appointment Letter')
- ),
- new Contract(
- AccountID = getAccountByNUID('800000002').Id,
- Status = 'Draft',
- Academic_Year__c = '2021-2022',
- RecordTypeId = ContractUtil.getRecordTypeId('Faculty Appointment Letter')
- )
- };
- insert contracts;
- contractMap = new Map<Id, Contract>(contracts);
- } // public TestDatabase()
- public Compensation_Rate__c getCompensationRate(Id key) {
- return compensationRateMap.get(key);
- } // public Compensation_Rate__c getCompensationRate(Id)
- public Compensation_Rate__c getCompensationRateByName(String key) {
- return compensationRateMapByName.get(key);
- } // public Compensation_Rate__c getCompensationRateByName(String)
- public Account getAccount(Id key) {
- return accountMap.get(key);
- } // public Account getAccount(Id)
- public Account getAccountByNUID(String key) {
- return accountMapByNUID.get(key);
- } // public Account getAccountByNUID(String)
- public License_Certification__c getLicenseCertification(Id key) {
- return licenseCertificationMap.get(key);
- } // public License_Certification__c getLicenseCertification(Id)
- public Term__c getTerm(Id key) {
- return termMap.get(key);
- } // public Term__c getTerm(Id)
- public Term__c getTermByName(String key) {
- return termMapByName.get(key);
- } // public Term__c getTermByName(String)
- public Term__c getTermByBannerCode(String key) {
- return termMapByBannerCode.get(key);
- } // public Term__c getTermByBannerCode(String)
- public Part_of_Term__c getPartofTerm(Id key) {
- return partofTermMap.get(key);
- } // public Part_of_Term__c getPartofTerm(Id)
- public Part_of_Term__c getPartofTermByName(String key) {
- return partofTermMapByName.get(key);
- } // public Part_of_Term__c getPartofTermByName(String)
- public Part_of_Term_Paydate__c getPartofTermPaydate(Id key) {
- return partofTermPaydateMap.get(key);
- } // public Part_of_Term_Paydate__c getPartofTermPaydate(Id)
- public Course__c getCourse(Id key) {
- return courseMap.get(key);
- } // public Course__c getCourse(Id)
- public Course__c getCourseByName(String key) {
- return courseMapByName.get(key);
- } // public Course__c getCourseByName(String)
- public Class__c getClass(Id key) {
- return classMap.get(key);
- } // public Class__c getClass(Id)
- public Class__c getClassByName(String key) {
- return classMapByName.get(key);
- } // public Class__c getClassByName(String)
- public Class__c getClassByName(String key) {
- return classMapByName.get(key);
- } // public Class__c getClassByName(String)
- public Class_Meeting__c getClassMeeting(Id key) {
- return classMeetingMap.get(key);
- } // public Class_Meeting__c getClassMeeting(Id)
- public Contract getContract(Id key) {
- return contractMap.get(key);
- } // public Contract getContract(Id)
- } // private class TestDatabase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement