2022-01-08 17:39:23 +00:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.Logging;
|
2022-10-06 23:43:45 +00:00
|
|
|
using Wabbajack.DTOs.Interventions;
|
2022-01-08 17:39:23 +00:00
|
|
|
using Wabbajack.Services.OSIntegrated;
|
|
|
|
using Xunit.DependencyInjection;
|
|
|
|
using Xunit.DependencyInjection.Logging;
|
|
|
|
|
|
|
|
namespace Wabbajack.Networking.Steam.Test;
|
|
|
|
|
|
|
|
public class Startup
|
|
|
|
{
|
|
|
|
public void ConfigureServices(IServiceCollection service)
|
|
|
|
{
|
2022-10-06 23:43:45 +00:00
|
|
|
service.AddSingleton<IUserInterventionHandler, ThrowingUserInterventionHandler>();
|
2022-01-08 17:39:23 +00:00
|
|
|
service.AddOSIntegrated();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
|
|
|
|
{
|
|
|
|
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
|
|
|
|
}
|
|
|
|
}
|