File tree Expand file tree Collapse file tree
tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests/Basic Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
99
10- public abstract class BasicTestsBase : IAsyncLifetime
10+ public abstract class BasicTestsBase < TFixture > : IClassFixture < TFixture > , IAsyncLifetime
11+ where TFixture : TestDbContainer < TestDbContext >
1112{
1213 private readonly Guid _run = Guid . NewGuid ( ) ;
1314 private TestDbContext _context = null ! ;
Original file line number Diff line number Diff line change 66namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
77
88[ Trait ( "Category" , "MySql" ) ]
9- public class BasicTestsMySql : BasicTestsBase , IClassFixture < TestDbContainerMySql < TestDbContext > >
9+ public class BasicTestsMySql : BasicTestsBase < TestDbContainerMySql < TestDbContext > >
1010{
11- public BasicTestsMySql ( TestDbContainerMySql < TestDbContext > fixture ) : base ( fixture )
11+ public BasicTestsMySql ( TestDbContainerMySql < TestDbContext > dbContainer ) : base ( dbContainer )
1212 {
1313 }
1414}
Original file line number Diff line number Diff line change 66namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
77
88[ Trait ( "Category" , "PostgreSql" ) ]
9- public class BasicTestsPostgreSql : BasicTestsBase , IClassFixture < TestDbContainerPostgreSql < TestDbContext > >
9+ public class BasicTestsPostgreSql : BasicTestsBase < TestDbContainerPostgreSql < TestDbContext > >
1010{
11- public BasicTestsPostgreSql ( TestDbContainerPostgreSql < TestDbContext > fixture ) : base ( fixture )
11+ public BasicTestsPostgreSql ( TestDbContainerPostgreSql < TestDbContext > dbContainer ) : base ( dbContainer )
1212 {
1313 }
1414}
Original file line number Diff line number Diff line change 66namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
77
88[ Trait ( "Category" , "SqlServer" ) ]
9- public class BasicTestsSqlServer : BasicTestsBase , IClassFixture < TestDbContainerSqlServer < TestDbContext > >
9+ public class BasicTestsSqlServer : BasicTestsBase < TestDbContainerSqlServer < TestDbContext > >
1010{
11- public BasicTestsSqlServer ( TestDbContainerSqlServer < TestDbContext > fixture ) : base ( fixture )
11+ public BasicTestsSqlServer ( TestDbContainerSqlServer < TestDbContext > dbContainer ) : base ( fixture )
1212 {
1313 }
1414}
Original file line number Diff line number Diff line change 66namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
77
88[ Trait ( "Category" , "Sqlite" ) ]
9- public class BasicTestsSqlite : BasicTestsBase , IClassFixture < TestDbContainerSqlite < TestDbContext > >
9+ public class BasicTestsSqlite : BasicTestsBase < TestDbContainerSqlite < TestDbContext > >
1010{
11- public BasicTestsSqlite ( TestDbContainerSqlite < TestDbContext > fixture ) : base ( fixture )
11+ public BasicTestsSqlite ( TestDbContainerSqlite < TestDbContext > dbContainer ) : base ( dbContainer )
1212 {
1313 }
1414}
You can’t perform that action at this time.
0 commit comments