Share via


DatabaseTestService Class

Provides services to tests during execution.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in microsoft.visualstudio.teamsystem.data.unittesting.dll)

Syntax

'Declaration
Public Class DatabaseTestService
'Usage
Dim instance As DatabaseTestService
public class DatabaseTestService
public ref class DatabaseTestService
public class DatabaseTestService
public class DatabaseTestService

Remarks

The services provided by this class include:

  • Reading the application configuration to open and supply database connections.

  • Executing the T-SQL script

  • Evaluating test conditions

  • Deploying database projects based on application configuration

  • Generating data using a data generator configuration.

Override methods in this class to provide your own custom DatabaseTestService implementation. This is the primary mechanism for modifying how tests are executed, how test conditions are evaluated and how connections are created while still working within the context of the Database Unit Test Designer.

Once you create your implementation, you need to register this implementation with the TestService. If you want to open an execution context and you don't want to use impersonation, you would also implement your own ConnectionContext.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.DatabaseTestService

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DatabaseTestService Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace