DatabaseTestService.GenerateData Method
When overridden in a derived class, generates data to specified database project prior to the unit test being run.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)
Syntax
'Declaration
Public Overridable Sub GenerateData
'Usage
Dim instance As DatabaseTestService
instance.GenerateData()
public virtual void GenerateData()
public:
virtual void GenerateData()
public function GenerateData()
Remarks
Override this method if you want to make changes to the database before applying the data generation plan. For example, you might want to disable triggers before generating data.
This method reads the appropriate parameters from the app.config file and then calls
GenerateData if they are present.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace