wabbajack/Wabbajack.Compiler.Test/Startup.cs

29 lines
905 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Wabbajack.Networking.WabbajackClientApi;
using Wabbajack.Services.OSIntegrated;
using Xunit.DependencyInjection;
using Xunit.DependencyInjection.Logging;
namespace Wabbajack.Compiler.Test
{
public class Startup
{
public void ConfigureServices(IServiceCollection service)
{
service.AddOSIntegrated(o =>
{
o.UseLocalCache = true;
o.UseStubbedGameFolders = true;
});
service.AddScoped<ModListHarness>();
service.AddSingleton<Configuration>();
}
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
{
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
}
}
}