Cloud-Awesome / dataverse-simulate

Mock framework to simulate Dataverse (Power Platform/Dynamics 365 CE) environments for unit testing
GNU General Public License v3.0
1 stars 0 forks source link

Implement paging for all QueryBase implementations #338

Open Cloud-Awesome opened 2 weeks ago

Cloud-Awesome commented 5 days ago

While the standard for CRM would be pages of 5000, I don't think that's a great number for unit testing. You don't want to have to create 5000+ records in order to test that handling paging works as it would massively allow down your tests and generally just be a pita

Instead, I think you should be able to pass through a page limit in the Simulator set up, so it defaults to 5000, but you could also set it to 2 if you want, the logic would still be the same (and could be completely ignored if consumers preferred)