You need to sign in to do that
Don't have an account?
Dolgoldy
PLz help in this code
HI all
please help me to write test class
please help me to write test class
public class myjob { @AuraEnabled(cacheable=true) Public static List<Job_Requirement__c> myservice() { list<Job_Requirement__c> lstjob = [select id, Name, Service_Name__c, Type__c from Job_Requirement__c where Type__c='Standard']; return lstjob; } @AuraEnabled(cacheable=true) Public static List<Job_Requirement__c> myservicegeneral() { list<Job_Requirement__c> lstjobgeneral = [select id, Name, Service_Name__c, Type__c from Job_Requirement__c where Type__c='Specialty']; return lstjobgeneral; } @AuraEnabled(cacheable=true) Public static List<Job_Requirement__c> myservicinteriror() { list<Job_Requirement__c> lstjobinteriror = [select id, Name, Service_Name__c, Type__c from Job_Requirement__c where Type__c='Custom Named']; return lstjobinteriror; } @AuraEnabled(cacheable=false) Public static List<Job_Requirement__c> getStandardWorkOrders() { list<Job_Requirement__c> lstjob = [select id, Name, Service_Name__c, Type__c from Job_Requirement__c ]; //Type__c='Standard']; return lstjob; } Public static List<Job_Requirement__c> getSpecialityWokOrders() { list<Job_Requirement__c> lstjobgeneral = [select id, Name, Service_Name__c, Type__c from Job_Requirement__c where Type__c='Specialty']; return lstjobgeneral; } }
This looks like duplicate of https://developer.salesforce.com/forums/ForumsMain?id=9062I000000UiQY
Does the code snippet provided in the above link help? Thanks