Skip to content

Commit

Permalink
Fixing DatabaseSnapshotTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 10, 2024
1 parent 166865c commit db5eed3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Lombiq.Tests.UI.Samples/Tests/DatabaseSnapshotTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ public DatabaseSnapshotTests(ITestOutputHelper testOutputHelper)
// "ExecuteTestFromExistingDBAsync()" to run the test on that. Finally, we test the basic Orchard features to check
// that the application was set up correctly.
[Fact]
public Task BasicOrchardFeaturesShouldWorkWithExistingDatabase() =>
ExecuteTestAsync(
async context =>
{
var appForDatabaseTestFolder = Path.Combine("Temp", "AppForDatabaseTest");
public async Task BasicOrchardFeaturesShouldWorkWithExistingDatabase()
{
var appForDatabaseTestFolder = Path.Combine("Temp", "AppForDatabaseTest");

await context.GoToSetupPageAndSetupOrchardCoreAsync(RecipeIds.BasicOrchardFeaturesTests);
await context.Application.TakeSnapshotAsync(appForDatabaseTestFolder);
await ExecuteTestAsync(
async context =>
{
await context.GoToSetupPageAndSetupOrchardCoreAsync(RecipeIds.BasicOrchardFeaturesTests);
await context.Application.TakeSnapshotAsync(appForDatabaseTestFolder);
});

await ExecuteTestFromExistingDBAsync(
async context => await context.TestBasicOrchardFeaturesExceptSetupAsync(),
appForDatabaseTestFolder);
});
await ExecuteTestFromExistingDBAsync(context => context.TestBasicOrchardFeaturesExceptSetupAsync(), appForDatabaseTestFolder);
}
}

// END OF TRAINING SECTION: Database snapshot tests.
Expand Down

0 comments on commit db5eed3

Please sign in to comment.