+ Start a Discussion
D J RobertsD J Roberts 

Should you use a testDataFactory for testing update DMLs or create the data in the test class?

Hey everyone, 

Trying to understand the concept of the TestDataFactory. It makes sense for the Creating of records, but do any of you include testmethods for updating a set of records? Second question, do you set the parameter seeAllData = true for the TestDataFactory?