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)
'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)
Type: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.DatabaseTestService
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.
- 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.
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace