function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DolgoldyDolgoldy 

PLz help in this code

HI all 
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;
    }
}

 
SwethaSwetha (Salesforce Developers) 
HI Dolgoldy,
This looks like duplicate of https://developer.salesforce.com/forums/ForumsMain?id=9062I000000UiQY

Does the code snippet provided in the above link help? Thanks