diff --git a/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Tests/Services/TrsDataSync/TrsDataSyncServiceTests.cs b/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Tests/Services/TrsDataSync/TrsDataSyncServiceTests.cs index 7a0252337..c2e1ffa2c 100644 --- a/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Tests/Services/TrsDataSync/TrsDataSyncServiceTests.cs +++ b/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Tests/Services/TrsDataSync/TrsDataSyncServiceTests.cs @@ -1,9 +1,14 @@ + namespace TeachingRecordSystem.Core.Tests.Services.TrsDataSync; [Collection(nameof(TrsDataSyncTestCollection))] -public partial class TrsDataSyncServiceTests(TrsDataSyncServiceFixture fixture) : IClassFixture +public partial class TrsDataSyncServiceTests(TrsDataSyncServiceFixture fixture) : IClassFixture, IAsyncLifetime { private TestableClock Clock => fixture.Clock; private TestData TestData => fixture.TestData; + + Task IAsyncLifetime.DisposeAsync() => Task.CompletedTask; + + Task IAsyncLifetime.InitializeAsync() => fixture.DbFixture.DbHelper.ClearDataAsync(); }