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
NNRNNR 

All test class for bellow method urgetn

Hi All,
   public void  SelectedAccounts() {
       for(OpportunityWrapper oOpp: getOpportunities()) {
              if(oOpp.selected == true) {
                  selectedOpportunities.add(oOpp.SO);
                  AccIds.add(oOpp.SO.AccountId);
              }
          }


===============
        for(Account a:[select id,name,Middle_Nam__c,CIS_No_new__c from Account where id =:AccIds]){
            a.Middle_Nam__c= cisChar+ String.valueOf(cisCounter);
            cisCounter=cisCounter-1;
            setAcc.add(a);
         
        }
     
 
THanks in advanced.
 
Amit Chaudhary 8Amit Chaudhary 8
Please post your full code. So that we can help you.

In mean time you can try below code

Controller obj = new Controller(); // Please add your controller class name
obj.SelectedAccounts();