Persistate API documentation
FillTestAssociations Method (index)
NamespacesPersistateIFillTestDataFillTestAssociations(Int32)

[This is preliminary documentation and is subject to change.]

This should set associations within this object to appropriate objects.
Declaration Syntax
C#
void FillTestAssociations(
	int index
)
Parameters
index (Int32)
The index of this object in any collection of test objects being created. Set to -1 for scalar objects.
Remarks

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.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)