Allow Moq to intercept TorrentInfo in tests

This commit is contained in:
jwmann 2026-04-24 00:09:00 -04:00
parent 797c58e654
commit 28b7c79a6b
No known key found for this signature in database
GPG key ID: FEAF88A73A68BD1B

View file

@ -183,7 +183,7 @@ public class QBittorrent(ILogger<QBittorrent> logger, Settings settings, Authent
return preferences;
}
public async Task<IList<TorrentInfo>> TorrentInfo()
public virtual async Task<IList<TorrentInfo>> TorrentInfo()
{
var savePath = Settings.AppDefaultSavePath;