Which approach should be used to provide test data for a test class?
A. Query for existing records in the database.
B. Execute anonymous code blocks that create data.
C. Use a test data factory class to create test data.
D. Access data in @TestVisible class variables.
Suggest answer: C
Reference:
No comments:
Please share to make the community better.