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
shambavishambavi 

How to cover Wrapper class

public with sharing class AccountListWrapper {
   
   public with sharing class DisplayAccountRecords {
        
        @AuraEnabled public Id AccountId { get; set; }
        @AuraEnabled public Account AccountRecord { get; set; }
        @AuraEnabled public Boolean IsSelected { get; set; }
        @AuraEnabled public String AccountConfig { get; set; }
        @AuraEnabled public String strGUID {get;set;}
        
        public DisplayAccountRecords(){
               IsSelected = false;
        }
        
    }
}

Thanks in Advance... 
Best Answer chosen by shambavi
sfdcMonkey.comsfdcMonkey.com
hi sambavi
use below test class for 100% code coverage
@isTest
public class testSample123 {

    private static testMethod void testmethod1(){
     
       AccountListWrapper.DisplayAccountRecords testName = new AccountListWrapper.DisplayAccountRecords(); 
        
           id tempId = testName.AccountId;
           Account TestAccountRecord  = testName.AccountRecord;
           Boolean TestIsSelected = testName.IsSelected ;
           String TestAccountConfig = testName.AccountConfig;
           String strGUID = testName.strGUID;
      
        
        
    }
}
i hope it helps you.
      Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others
    thanks
http://sfdcmonkey.com