@@ -58,7 +58,7 @@ public void TestTransaction()
58
58
[ TestMethod ]
59
59
public async Task TestUseTranscationAsync ( )
60
60
{
61
- _options . Object . UseUoW < CustomerDbContext > ( options => options . DbContextOptionsBuilder . UseSqlite ( Connection ) ) ;
61
+ _options . Object . UseUoW < CustomerDbContext > ( options => options . UseSqlite ( Connection ) ) ;
62
62
var serviceProvider = _options . Object . Services . BuildServiceProvider ( ) ;
63
63
var dbContext = serviceProvider . GetRequiredService < CustomerDbContext > ( ) ;
64
64
await dbContext . Database . EnsureCreatedAsync ( ) ;
@@ -79,7 +79,7 @@ public async Task TestUseTranscationAsync()
79
79
[ TestMethod ]
80
80
public async Task TestNotUseTranscationAsync ( )
81
81
{
82
- _options . Object . UseUoW < CustomerDbContext > ( options => options . DbContextOptionsBuilder . UseSqlite ( Connection ) ) ;
82
+ _options . Object . UseUoW < CustomerDbContext > ( options => options . UseSqlite ( Connection ) ) ;
83
83
var serviceProvider = _options . Object . Services . BuildServiceProvider ( ) ;
84
84
var dbContext = serviceProvider . GetRequiredService < CustomerDbContext > ( ) ;
85
85
await dbContext . Database . EnsureCreatedAsync ( ) ;
@@ -108,7 +108,7 @@ public async Task TestNotTransactionCommitAsync()
108
108
[ TestMethod ]
109
109
public async Task TestCommitAsync ( )
110
110
{
111
- _options . Object . UseUoW < CustomerDbContext > ( options => options . DbContextOptionsBuilder . UseSqlite ( Connection ) ) ;
111
+ _options . Object . UseUoW < CustomerDbContext > ( options => options . UseSqlite ( Connection ) ) ;
112
112
var serviceProvider = _options . Object . Services . BuildServiceProvider ( ) ;
113
113
var dbContext = serviceProvider . GetRequiredService < CustomerDbContext > ( ) ;
114
114
await dbContext . Database . EnsureCreatedAsync ( ) ;
@@ -128,7 +128,7 @@ public async Task TestCommitAsync()
128
128
[ TestMethod ]
129
129
public async Task TestOpenRollbackAsync ( )
130
130
{
131
- _options . Object . UseUoW < CustomerDbContext > ( options => options . DbContextOptionsBuilder . UseSqlite ( Connection ) ) ;
131
+ _options . Object . UseUoW < CustomerDbContext > ( options => options . UseSqlite ( Connection ) ) ;
132
132
var serviceProvider = _options . Object . Services . BuildServiceProvider ( ) ;
133
133
var dbContext = serviceProvider . GetRequiredService < CustomerDbContext > ( ) ;
134
134
await dbContext . Database . EnsureCreatedAsync ( ) ;
@@ -145,7 +145,7 @@ public async Task TestOpenRollbackAsync()
145
145
public async Task TestAddLoggerAndOpenRollbackAsync ( )
146
146
{
147
147
_options . Object . Services . AddLogging ( ) ;
148
- _options . Object . UseUoW < CustomerDbContext > ( options => options . DbContextOptionsBuilder . UseSqlite ( Connection ) ) ;
148
+ _options . Object . UseUoW < CustomerDbContext > ( options => options . UseSqlite ( Connection ) ) ;
149
149
var serviceProvider = _options . Object . Services . BuildServiceProvider ( ) ;
150
150
var dbContext = serviceProvider . GetRequiredService < CustomerDbContext > ( ) ;
151
151
await dbContext . Database . EnsureCreatedAsync ( ) ;
0 commit comments