Last active
July 22, 2021 21:08
-
-
Save gitmatheus/b9fc466354aef522c89d0f64627fb2c6 to your computer and use it in GitHub Desktop.
Mock relationships in Apex - 02 of 05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataLayerHandler { | |
// DataLayer Class: | |
public class DataLayer implements IDataLayer { | |
List<Document__c> getDocumentList(){ | |
return [SELECT Id, Account__r.Business__c FROM Document__c]; | |
} | |
} | |
public interface IDataLayer { | |
List<Document__c> getDocumentList(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment