-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up tests - finished PostgreSQL
- Loading branch information
Showing
12 changed files
with
52 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
unittests/MariaDB/TestInfrastructure/InspectableMariaDbDatabase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Data.Common; | ||
using grate.MariaDb.Migration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace MariaDB.TestInfrastructure; | ||
|
||
public class InspectableMariaDbDatabase : MariaDbDatabase | ||
{ | ||
public InspectableMariaDbDatabase(IServiceProvider serviceProvider) | ||
: base(serviceProvider.GetRequiredService<ILogger<InspectableMariaDbDatabase>>()) | ||
{ | ||
} | ||
|
||
public DbConnection GetConnection() => base.Connection; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
using PostgreSQL.TestInfrastructure; | ||
using TestCommon.Generic; | ||
using TestCommon.Generic; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace PostgreSQL; | ||
|
||
[Collection(nameof(PostgreSqlTestContainer))] | ||
public class MigrationTables : GenericMigrationTables, IClassFixture<SimpleService> | ||
{ | ||
public MigrationTables(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
{ | ||
Context = testContext; | ||
TestOutput = testOutput; | ||
} | ||
} | ||
public class MigrationTables(IGrateTestContext testContext, ITestOutputHelper testOutput) : | ||
GenericMigrationTables(testContext, testOutput); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters