Add UnitTests and made code testable with DI

This commit is contained in:
2025-11-04 20:27:51 +10:30
parent e5787c9321
commit 17be096ae2
22 changed files with 865 additions and 140 deletions
+9 -6
View File
@@ -7,16 +7,19 @@
},
"AllowedHosts": "*",
"RootDirectories": [ "\\\\NAS\\Roms\\Switch", "Z:\\imgs\\roms\\Switch" ],
"WhitelistExtensions": [ ".bin", ".jpg", ".png", ".txt" ],
"RomExtensions": [ ".xci", ".nsp", ".xcz" ],
"SnapshotFile": "index.tfl",
"SnapshotBackupFile": "snapshot.bin",
"KeySetFile": "prod.keys",
"CredentialsFile": "credentials.json",
"FingerprintsFile": "fingerprints.json",
"BlacklistFile": "blacklist.json",
"MaxFailedAttempts": 5,
"KeySetFile": "prod.keys",
"Snapshot" : {
"RootDirectories": [ "\\\\NAS\\Roms\\Switch", "Z:\\imgs\\roms\\Switch" ],
"WhitelistExtensions": [ ".bin", ".jpg", ".png", ".txt" ],
"RomExtensions": [ ".xci", ".nsp", ".xcz" ],
"CacheTtl": 60,
"SnapshotFile": "index.tfl",
"SnapshotBackupFile": "snapshot.bin"
},
"TitleDb": {
"CountryCode": "AU",
"Language": "en",