DatabaseTestClass.TestService Property

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

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

'Declaration
Public Shared Property TestService As DatabaseTestService
public static DatabaseTestService TestService { get; set; }
public:
static property DatabaseTestService^ TestService {
    DatabaseTestService^ get ();
    void set (DatabaseTestService^ value);
}
static member TestService : DatabaseTestService with get, set
static function get TestService () : DatabaseTestService
static function set TestService (value : DatabaseTestService)

Property Value

Type: Microsoft.Data.Schema.UnitTesting.DatabaseTestService
A DatabaseTestService object.

Remarks

You can replace the default implementation of the DatabaseTestService by setting this property to access your own implementation of the class. This property is initialized by the DatabaseTestClass class 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 nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DatabaseTestClass Class

Microsoft.Data.Schema.UnitTesting Namespace

DatabaseTestService