SqlDatabaseTestClass.TestService Property
Gets or sets the SqlDatabaseTestService class that is used by tests during execution.
Namespace: Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly: Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)
Syntax
public static SqlDatabaseTestService TestService { get; set; }
public:
property SqlDatabaseTestService^ TestService {
static SqlDatabaseTestService^ get();
static void set(SqlDatabaseTestService^ value);
}
static member TestService : SqlDatabaseTestService with get, set
Public Shared Property TestService As SqlDatabaseTestService
Property Value
Type: Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestService
A SqlDatabaseTestService object.
Remarks
You can replace the default implementation of the SqlDatabaseTestService by setting this property to access your own implementation of the class. This property is initialized by the SqlDatabaseTestClass class static constructor. The instance of the SqlDatabaseTestService 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.
See Also
SqlDatabaseTestService
SqlDatabaseTestClass Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace
Return to top