wabbajack/Wabbajack.Networking.Steam.Test/Startup.cs

22 lines
714 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
2022-10-06 23:43:45 +00:00
using Wabbajack.DTOs.Interventions;
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>();
service.AddOSIntegrated();
}
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
{
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
}
}