Condividi tramite


Proprietà SqlDatabaseTestClass.TestService

 

Ottiene o imposta la classe SqlDatabaseTestService utilizzata dai test durante l'esecuzione.

Spazio dei nomi:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Sintassi

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

Valore proprietà

Type: Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestService

Oggetto SqlDatabaseTestService.

Note

È possibile sostituire l'implementazione predefinita di SqlDatabaseTestService impostando questa proprietà in modo che acceda all'implementazione personalizzata della classe.La proprietà viene inizializzata dal costruttore statico della classe SqlDatabaseTestClass.L'istanza di SqlDatabaseTestService fornita tramite questa proprietà controlla le modalità di creazione delle connessioni, di esecuzione degli script e di valutazione delle condizioni di test.

Nota

Questa proprietà non può essere impostata su null.

Vedere anche

SqlDatabaseTestService
Classe SqlDatabaseTestClass
Spazio dei nomi Microsoft.Data.Tools.Schema.Sql.UnitTesting

Torna all'inizio