diff --git a/Wabbajack.VirtualFileSystem.Test/FileExtractorTests.cs b/Wabbajack.VirtualFileSystem.Test/FileExtractorTests.cs index a601d3c6..e62255d8 100644 --- a/Wabbajack.VirtualFileSystem.Test/FileExtractorTests.cs +++ b/Wabbajack.VirtualFileSystem.Test/FileExtractorTests.cs @@ -228,8 +228,10 @@ namespace Wabbajack.VirtualFileSystem.Test private static async Task DownloadMod(Game game, int mod) { - using var client = await NexusApiClient.Get(); - var results = await client.GetModFiles(game, mod); + var client = DownloadDispatcher.GetInstance(); + await client.Prepare(); + + var results = await client.Client!.GetModFiles(game, mod); var file = results.files.FirstOrDefault(f => f.is_primary) ?? results.files.OrderByDescending(f => f.uploaded_timestamp).First(); return await DownloadNexusFile(game, mod, file); @@ -253,8 +255,10 @@ namespace Wabbajack.VirtualFileSystem.Test public static async Task DownloadMod(Game game, int mod, int fileId) { - using var client = await NexusApiClient.Get(); - var results = await client.GetModFiles(game, mod); + var client = DownloadDispatcher.GetInstance(); + await client.Prepare(); + + var results = await client.Client!.GetModFiles(game, mod); var file = results.files.FirstOrDefault(f => f.file_id == fileId); return await DownloadNexusFile(game, mod, file);