mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
28 lines
845 B
C#
28 lines
845 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
using Wabbajack.Networking.WabbajackClientApi;
|
|
using Wabbajack.Services.OSIntegrated;
|
|
using Xunit.DependencyInjection;
|
|
using Xunit.DependencyInjection.Logging;
|
|
using Configuration = Wabbajack.Services.OSIntegrated.Configuration;
|
|
|
|
namespace Wabbajack.Compiler.Test;
|
|
|
|
public class Startup
|
|
{
|
|
public void ConfigureServices(IServiceCollection service)
|
|
{
|
|
service.AddOSIntegrated(o =>
|
|
{
|
|
o.UseLocalCache = true;
|
|
o.UseStubbedGameFolders = true;
|
|
});
|
|
|
|
service.AddScoped<ModListHarness>();
|
|
}
|
|
|
|
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
|
|
{
|
|
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
|
|
}
|
|
} |