wabbajack/Wabbajack.Installer.Test/Startup.cs
2021-10-23 10:51:17 -06:00

24 lines
684 B
C#

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