File tree Expand file tree Collapse file tree
tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Basic ;
1414
15- public abstract class BasicTestsBase < TDbContext > ( IDbContextFactory dbContainer ) : IAsyncLifetime
15+ public abstract class BasicTestsBase < TDbContext > ( IDbContextFactory dbContextFactory ) : IAsyncLifetime
1616 where TDbContext : TestDbContext , new ( )
1717{
1818 private readonly Guid _run = Guid . NewGuid ( ) ;
1919 private TDbContext _context = null ! ;
2020
2121 public async Task InitializeAsync ( )
2222 {
23- _context = await dbContainer . CreateContextAsync < TDbContext > ( "basic" ) ;
23+ _context = await dbContextFactory . CreateContextAsync < TDbContext > ( "basic" ) ;
2424 }
2525
2626 public Task DisposeAsync ( )
Original file line number Diff line number Diff line change 1111
1212namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Geo ;
1313
14- public abstract class GeoTestsBase < TDbContext > ( IDbContextFactory dbContainer ) : IAsyncLifetime
14+ public abstract class GeoTestsBase < TDbContext > ( IDbContextFactory dbContextFactory ) : IAsyncLifetime
1515 where TDbContext : TestDbContextGeo , new ( )
1616{
1717 private readonly Guid _run = Guid . NewGuid ( ) ;
1818 private TDbContext _context = null ! ;
1919
2020 public async Task InitializeAsync ( )
2121 {
22- _context = await dbContainer . CreateContextAsync < TDbContext > ( "geo" ) ;
22+ _context = await dbContextFactory . CreateContextAsync < TDbContext > ( "geo" ) ;
2323 }
2424
2525 public Task DisposeAsync ( )
Original file line number Diff line number Diff line change 1010
1111namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Merge ;
1212
13- public abstract class MergeTestsBase < TDbContext > ( IDbContextFactory dbContainer ) : IAsyncLifetime
13+ public abstract class MergeTestsBase < TDbContext > ( IDbContextFactory dbContextFactory ) : IAsyncLifetime
1414 where TDbContext : TestDbContext , new ( )
1515{
1616 private readonly Guid _run = Guid . NewGuid ( ) ;
1717 private TDbContext _context = null ! ;
1818
1919 public async Task InitializeAsync ( )
2020 {
21- _context = await dbContainer . CreateContextAsync < TDbContext > ( "basic" ) ;
21+ _context = await dbContextFactory . CreateContextAsync < TDbContext > ( "basic" ) ;
2222 }
2323
2424 public Task DisposeAsync ( )
Original file line number Diff line number Diff line change 1010
1111namespace PhenX . EntityFrameworkCore . BulkInsert . Tests . Tests . Various ;
1212
13- public abstract class VariousTestsBase < TDbContext > ( IDbContextFactory dbContainer ) : IAsyncLifetime
13+ public abstract class VariousTestsBase < TDbContext > ( IDbContextFactory dbContextFactory ) : IAsyncLifetime
1414 where TDbContext : TestDbContext , new ( )
1515{
1616 private readonly Guid _run = Guid . NewGuid ( ) ;
1717 private TDbContext _context = null ! ;
1818
1919 public async Task InitializeAsync ( )
2020 {
21- _context = await dbContainer . CreateContextAsync < TDbContext > ( "various" ) ;
21+ _context = await dbContextFactory . CreateContextAsync < TDbContext > ( "various" ) ;
2222 }
2323
2424 public Task DisposeAsync ( )
You can’t perform that action at this time.
0 commit comments