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
Suman ChandraSuman Chandra 

Please provide test class for my code below.

for(Product_Option__c po : listProductOption) {
                    popularCombos.add(new SelectOption(po.Co_Product_Options__c, po.Co_Product_Options__c));
                    if(po.Product_Option__c == 'Popular Combos')
                        //listPopularCombos.add(po.Co_Product_Options__c);
                        listPopularCombos.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                    if(po.Product_Option__c == 'Commercial Credit Reports') 
                        listcommercialCreditReport.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                    if(po.Product_Option__c == 'Commercial Credit Score') {
                        
                        if(isInitiateDecision == true && po.Co_Product_Options__c == 'DecisionIQ')
                            isDecisionChk = true;
                        system.debug('>>>Inittate Decision'+isInitiateDecision+'decision chk'+isDecisionChk+'lllll'+po.Co_Product_Options__c );    
                            
                        listcommercialCreditScore.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                            if(isDecisionChk == true)
                                isDecisionChk = false;
                    }
                    system.debug('>>>>>Combo value'+listcommercialCreditScore);
                    
                }