Skip to content

Commit bbe3962

Browse files
committed
Adding the second ''using"
Apparently, i haven't saved the file, and github didn't track it with my first commit. Silly me
1 parent c73d000 commit bbe3962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/AspNetCoreTemplate.Services.Data.Tests/SettingsServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public async Task GetCountShouldReturnCorrectNumberUsingDbContext()
3737
{
3838
var options = new DbContextOptionsBuilder<ApplicationDbContext>()
3939
.UseInMemoryDatabase(databaseName: "SettingsTestDb").Options;
40-
var dbContext = new ApplicationDbContext(options);
40+
using var dbContext = new ApplicationDbContext(options);
4141
dbContext.Settings.Add(new Setting());
4242
dbContext.Settings.Add(new Setting());
4343
dbContext.Settings.Add(new Setting());

0 commit comments

Comments
 (0)