refactor: organize services by provider and standardize settings pattern

This commit is contained in:
V1ck3s
2026-01-08 19:02:44 +01:00
parent d0e64bac81
commit fe9cb9b758
16 changed files with 469 additions and 341 deletions

View File

@@ -1,4 +1,6 @@
using octo_fiesta.Services;
using octo_fiesta.Services.Deezer;
using octo_fiesta.Services.Local;
using octo_fiesta.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
@@ -68,6 +70,13 @@ public class DeezerDownloadServiceTests : IDisposable
{
DownloadMode = downloadMode
});
var deezerSettings = Options.Create(new DeezerSettings
{
Arl = arl,
ArlFallback = null,
Quality = null
});
return new DeezerDownloadService(
_httpClientFactoryMock.Object,
@@ -75,6 +84,7 @@ public class DeezerDownloadServiceTests : IDisposable
_localLibraryServiceMock.Object,
_metadataServiceMock.Object,
subsonicSettings,
deezerSettings,
_loggerMock.Object);
}

View File

@@ -1,4 +1,4 @@
using octo_fiesta.Services;
using octo_fiesta.Services.Deezer;
using octo_fiesta.Models;
using Moq;
using Moq.Protected;

View File

@@ -1,4 +1,4 @@
using octo_fiesta.Services;
using octo_fiesta.Services.Local;
using octo_fiesta.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;