I'm trying to write most of my tests without hitting salesforce database. For that I'm implementing some simple mock class where I just return some SOQL queries when needed. The problem I'm facing now is with AggregateResult. Was someone able to create in memory this so that I can returned it in one of my mocked methods? Thank you.
Is there a way I can mock an AggregateResult?
Francisco Riccomagno
- 161
- 1
- 6