Skip to content

Instantly share code, notes, and snippets.

@gitmatheus
Last active July 22, 2021 21:08
Show Gist options
  • Save gitmatheus/b9fc466354aef522c89d0f64627fb2c6 to your computer and use it in GitHub Desktop.
Save gitmatheus/b9fc466354aef522c89d0f64627fb2c6 to your computer and use it in GitHub Desktop.
Mock relationships in Apex - 02 of 05
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