// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading.Tasks; using EntityFrameworkCore.Jet.FunctionalTests.TestUtilities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.TestUtilities; using Xunit; namespace EntityFrameworkCore.Jet.FunctionalTests; public class ConcurrencyDetectorEnabledJetTest : ConcurrencyDetectorEnabledRelationalTestBase< ConcurrencyDetectorEnabledJetTest.ConcurrencyDetectorJetFixture> { public ConcurrencyDetectorEnabledJetTest(ConcurrencyDetectorJetFixture fixture) : base(fixture) { Fixture.TestSqlLoggerFactory.Clear(); } protected override async Task ConcurrencyDetectorTest(Func> test) { await base.ConcurrencyDetectorTest(test); Assert.Empty(Fixture.TestSqlLoggerFactory.SqlStatements); } public class ConcurrencyDetectorJetFixture : ConcurrencyDetectorFixtureBase { protected override ITestStoreFactory TestStoreFactory => JetTestStoreFactory.Instance; public TestSqlLoggerFactory TestSqlLoggerFactory => (TestSqlLoggerFactory)ListLoggerFactory; } }