Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Team Data Managed Ref
DatabaseTestService Class

Provides services to tests during execution.

Namespace:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly:  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)
Visual Basic (Declaration)
Public Class DatabaseTestService
Visual Basic (Usage)
Dim instance As DatabaseTestService
C#
public class DatabaseTestService
Visual C++
public ref class DatabaseTestService
JScript
public class DatabaseTestService

The services provided by this class include:

  • Reading the application configuration to open and supply database connections.

  • Executing the T-SQL script

  • Evaluating test conditions

  • Deploying database projects based on application configuration

  • Generating data using a data generator configuration.

Override methods in this class to provide your own custom DatabaseTestService implementation. This is the primary mechanism for modifying how tests are executed, how test conditions are evaluated and how connections are created while still working within the context of the Database Unit Test Designer.

Once you create your implementation, you need to register this implementation with the TestService. If you want to open an execution context and you don't want to use impersonation, you would also implement your own ConnectionContext.

System..::.Object
  Microsoft.VisualStudio.TeamSystem.Data.UnitTesting..::.DatabaseTestService
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker