Skip to main content
All docs
.NET Framework 4.5.2+

EasyTestFixtureContext.RegisterDatabases(IEasyTestDatabaseOptions[]) Method

Registers a set of data sources used for the testing purposes.

Namespace: DevExpress.EasyTest.Framework

Assembly: DevExpress.EasyTest.v23.1.dll

NuGet Package: DevExpress.EasyTest


public void RegisterDatabases(
    params IEasyTestDatabaseOptions[] options


Name Type Description
options IEasyTestDatabaseOptions[]

An array of data sources used to test XAF applications.


Databases registered in this method can be used in RestoreDB(String) and DropDB(String) methods.

public class YourSolutionNameTests : IDisposable {
    const string AppDBName = "YourSolutionName";
    EasyTestFixtureContext FixtureContext { get; } = new EasyTestFixtureContext();
    public YourSolutionNameTests() {
        FixtureContext.RegisterDatabases(new DatabaseOptions(AppDBName, "YourSolutionNameEasyTest", server: @"(localdb)\mssqllocaldb"));
See Also