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

'Declaration
Public Shared Property TestService As DatabaseTestService
'Usage
Dim value As DatabaseTestService

value = DatabaseTestClass.TestService

DatabaseTestClass.TestService = value
public static DatabaseTestService TestService { get; set; }
public:
static property DatabaseTestService^ TestService {
    DatabaseTestService^ get ();
    void set (DatabaseTestService^ value);
}
public static function get TestService () : DatabaseTestService
public static function set TestService (value : DatabaseTestService)

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