mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
refactor: organize services by provider and standardize settings pattern
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user