Skip to main content
All docs
V24.2
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EasyTestFixtureContext.RestoreDB(String) Method

Restores the specified database from a backup. The database name must be registered with the RegisterDatabases(IEasyTestDatabaseOptions[]) method.

Namespace: DevExpress.EasyTest.Framework

Assembly: DevExpress.EasyTest.v24.2.dll

NuGet Package: DevExpress.EasyTest

#Declaration

public void RestoreDB(
    string dbName
)

#Parameters

Name Type Description
dbName String

A restored database’s name.

#Remarks

Call the RestoreDB method before running an application.

[Fact] 
public void Test() { 
    FixtureContext.RestoreDB(MainDemoDBName); 
    var appContext = FixtureContext.CreateApplicationContext(BlazorAppName); 
    appContext.RunApplication(); 
    // 
} 
See Also