using ProxyForge.Encoding; namespace ProxyForge.Tests; sealed class FakeEncodeSession(ProxyAnalysis analysis, Func?, CancellationToken, Task> encode) : IProxyEncodeSession { public bool IsDisposed { get; private set; } public ProxyAnalysis Analysis => analysis; public Task EncodeAsync(int firstFrame, int frameCount, string outputPath, IProgress? progress, CancellationToken cancellationToken) => encode(firstFrame, frameCount, outputPath, progress, cancellationToken); public void Dispose() => IsDisposed = true; }