rdt-client/server
Cucumberrbob 1d15b0d651
Add tests for AllDebridTorrentClient
Tests:
- `GetDownloadLinks`
  - `IncludeRegex` filter works
  - `ExcludeRegex` filter works
  - `DownloadMinSize` filter works
  - only `IncludeRegex` is used when both `IncludeRegex` and `ExcludeRegex` are set
  - gets links for all files if none of the above filters are set
  - returns null if `torrent.RdId` is null
- `GetTorrents`
  - [Both full/partial sync] returns empty list when no torrents present in api response
  - [full sync] overrides any previous torrents in cache, deleting those not present in the api response
  - [partial sync] updates torrents in cache according to the api response
  - [partial sync] adds torrents to cache according to the api response
  - `Map` (private so tested via `GetTorrents`)
    - Computes progress correctly from `Downloaded / Size`
  - `UpdateData`
    - [`torrentClientTorrent != null`] does not get from api, updates the `torrent` accordingly
    - [`torrentClientTorrent == null`] gets from api, updates the `torrent` accordingly
    - [`torrentClientTorrent == null`] when torrent deleted from rd, updates `RdStatusRaw = "deleted""`
    - when `torrent.RdId == null`, returns the `torrent` unmodified
2025-02-17 22:04:18 +00:00
..
RdtClient.Data Use IProcessFactory, IFileSystem in Service.Torrents#RunTorrentComplete 2025-02-17 21:59:56 +00:00
RdtClient.Service Use ISynologyClient (mockable) and inject IDelayProvider so SynologyTorrentClient is testable 2025-02-17 22:00:19 +00:00
RdtClient.Service.Test Add tests for AllDebridTorrentClient 2025-02-17 22:04:18 +00:00
RdtClient.Web Upgrade AllDebrid and Downloader.NET to the latest versions. 2025-02-16 09:44:21 -07:00
.gitignore Upgrade to .NET6 and Angular 13. 2021-11-21 13:58:49 -07:00
RdtClient.sln Add test project RdtClient.Service.Test 2025-02-17 22:00:33 +00:00
RdtClient.sln.DotSettings Upgrade to .NET 9, code cleanup. 2024-11-18 03:39:12 -07:00