Skip to content

Commit

Permalink
Amended to clear down data between tests which was causing indetermin…
Browse files Browse the repository at this point in the history
…ate test results
  • Loading branch information
hortha committed Dec 10, 2024
1 parent b1fbeba commit 2078334
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@

namespace TeachingRecordSystem.Core.Tests.Services.TrsDataSync;

[Collection(nameof(TrsDataSyncTestCollection))]
public partial class TrsDataSyncServiceTests(TrsDataSyncServiceFixture fixture) : IClassFixture<TrsDataSyncServiceFixture>
public partial class TrsDataSyncServiceTests(TrsDataSyncServiceFixture fixture) : IClassFixture<TrsDataSyncServiceFixture>, IAsyncLifetime
{
private TestableClock Clock => fixture.Clock;

private TestData TestData => fixture.TestData;

Task IAsyncLifetime.DisposeAsync() => Task.CompletedTask;

Task IAsyncLifetime.InitializeAsync() => fixture.DbFixture.DbHelper.ClearDataAsync();
}

0 comments on commit 2078334

Please sign in to comment.