Share via


DatabaseTestClass.TestService Property

Gets or sets the instance of the DatabaseTestService class that is used by tests during execution.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)

Syntax

public static DatabaseTestService TestService { get; set; }

Property Value

Type: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.DatabaseTestService

Remarks

You can replace the default implementation of the DatabaseTestService by setting this property to access your own implementation of the DatabaseTestService class. This property is initialized by DatabaseTestClass class's static constructor. The instance of the DatabaseTestService that is provided through this property controls how connections are created, scripts are executed, and test conditions are evaluated.

Note

This property cannot be set to null.

Permissions

See Also

Reference

DatabaseTestClass Class

DatabaseTestClass Members

Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace