Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Sep 28, 2024
1 parent dedc86e commit d56347f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/NexusMods.StandardGameLocators.TestHelpers/Services.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GameFinder.Common;
using GameFinder.Launcher.Heroic;
using GameFinder.StoreHandlers.EADesktop;
using GameFinder.StoreHandlers.EGS;
using GameFinder.StoreHandlers.GOG;
Expand Down Expand Up @@ -75,6 +76,8 @@ public static IServiceCollection AddStubbedGameLocators(this IServiceCollection

if (OSInformation.Shared.IsLinux)
{
coll.AddSingleton<HeroicGOGHandler>(s => new HeroicGOGHandler(s.GetRequiredService<IFileSystem>()));

coll.AddSingleton<IWinePrefixManager<WinePrefix>>(s =>
new StubbedWinePrefixManager<WinePrefix>(s.GetRequiredService<TemporaryFileManager>(),
tfm => new WinePrefix
Expand Down

0 comments on commit d56347f

Please sign in to comment.