// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Threading.Tasks;
using AgentConformanceTests;
using Microsoft.Agents;
namespace AgentConformance.IntegrationTests.Support;
///
/// Helper class to delete threads after tests.
///
/// The thread to delete.
/// The fixture that provides agent specific capabilities.
internal sealed class ThreadCleanup(AgentThread thread, AgentFixture fixture) : IAsyncDisposable
{
public async ValueTask DisposeAsync()
{
await fixture.DeleteThreadAsync(thread);
}
}