You need to sign in to do that
Don't have an account?
Eric.Goehring.ax954
Need Test Coverage
How do I write a Test Class for:
public class ScheduleController {
public Id Ins_Id {get;set;}
public List<Schedule__c> thisInsertSch = new List<Schedule__c>();
public List<Schedule__c> getthisInsertSch() {
thisInsertSch = [select id, Publication_Date__c, Ad_Discount_Pct__c from Schedule__c where Insertion_Order__c=:Ins_Id ORDER BY Publication_Date__c];
return thisInsertSch;
}
}
public Id Ins_Id {get;set;}
public List<Schedule__c> thisInsertSch = new List<Schedule__c>();
public List<Schedule__c> getthisInsertSch() {
thisInsertSch = [select id, Publication_Date__c, Ad_Discount_Pct__c from Schedule__c where Insertion_Order__c=:Ins_Id ORDER BY Publication_Date__c];
return thisInsertSch;
}
}
I think you need something like:
All Answers
I think you need something like:
Bob, you are the MAN! Thank you very much. This worked like a charm.