Update src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs

Co-Authored-By: ajcvickers <ajcvickers@hotmail.com>
This commit is contained in:
Ben Adams 2019-04-21 16:18:34 -07:00 committed by Arthur Vickers
parent f0c8702f7e
commit 2e8e1b1ec1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test
public void Dispose() public void Dispose()
{ {
if (_testStore.HasValue) if (_testStore.IsValueCreated)
{ {
_testStore.Value.Dispose(); _testStore.Value.Dispose();
} }