[This is preliminary documentation and is subject to change.]
void FillTestAssociations( int index )
- index (Int32)
- The index of this object in any collection of test objects being created. Set to -1 for scalar objects.
This method will be called by the Create Test Data operation only if CanFillTestAssociations returns true.
This method should set associated single members to appropriate objects as desired. It should also fill associated collections. If a single association is left null or an associated collection is left empty, the Create Test Data operation will set/fill them.
The Create Test Data operation can fill associations only if the association has a from clause in your Persistate definition file. If there is no from clause, or there is a within clause, this method is the only way to create test associations.