wabbajack/Wabbajack.Installer.Test/Startup.cs
2022-10-06 17:00:36 -06:00

26 lines
811 B
C#

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Wabbajack.DTOs.Interventions;
using Wabbajack.Services.OSIntegrated;
using Xunit.DependencyInjection;
using Xunit.DependencyInjection.Logging;
namespace Wabbajack.Installer.Test;
public class Startup
{
public void ConfigureServices(IServiceCollection service)
{
service.AddSingleton<IUserInterventionHandler, ThrowingUserInterventionHandler>();
service.AddOSIntegrated(o =>
{
o.UseLocalCache = true;
o.UseStubbedGameFolders = true;
});
}
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
{
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
}
}