• ANDRI nomena
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
some one can help me how to test this method
My Controller Code:
... @RemoteAction
    public static List<JSStove> getStoves(Id ResellerID) {// include Id ResellerID from VF
        
        List<JSStove> stoves = new List<JSStove>();
        for (Product_item__c stove : [SELECT Id, Name FROM Product_item__c
                                      WHERE Reseller__c =:ResellerID ORDER BY Name ASC]) {                      
                                      
            stoves.add(new JSStove(stove.Name, stove.Id));
        }
        return stoves;
    }

Please help me.
Thanks in Advance
some one can help me how to test this method
My Controller Code:
... @RemoteAction
    public static List<JSStove> getStoves(Id ResellerID) {// include Id ResellerID from VF
        
        List<JSStove> stoves = new List<JSStove>();
        for (Product_item__c stove : [SELECT Id, Name FROM Product_item__c
                                      WHERE Reseller__c =:ResellerID ORDER BY Name ASC]) {                      
                                      
            stoves.add(new JSStove(stove.Name, stove.Id));
        }
        return stoves;
    }

Please help me.
Thanks in Advance