We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73d000 commit bbe3962Copy full SHA for bbe3962
src/Tests/AspNetCoreTemplate.Services.Data.Tests/SettingsServiceTests.cs
@@ -37,7 +37,7 @@ public async Task GetCountShouldReturnCorrectNumberUsingDbContext()
37
{
38
var options = new DbContextOptionsBuilder<ApplicationDbContext>()
39
.UseInMemoryDatabase(databaseName: "SettingsTestDb").Options;
40
- var dbContext = new ApplicationDbContext(options);
+ using var dbContext = new ApplicationDbContext(options);
41
dbContext.Settings.Add(new Setting());
42
43
0 commit comments