• Igor Semenko
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I wrote AccountsSelector class but I still can't pass the challange.
Where could I be wrong?
Code:

public with sharing class AccountsSelector extends fflib_SObjectSelector{
    
   public List<Schema.SObjectField> getSObjectFieldList() {
        return new List<Schema.SObjectField> {
            Account.Id,
            Account.Description,
            Account.Name,
            Account.AnnualRevenue };
    }
    
    List<Account> selectById(Set<ID> idSet) {
      return (List<Account>) selectSObjectsById(idSet);
    }

     public Schema.SObjectType getSObjectType() {
        return Account.sObjectType;
    }

}