mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
30 lines
966 B
C#
30 lines
966 B
C#
using System;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
using Wabbajack.Common;
|
|
using Wabbajack.Paths.IO;
|
|
using Xunit.DependencyInjection;
|
|
using Xunit.DependencyInjection.Logging;
|
|
|
|
namespace Wabbajack.Compression.BSA.Test
|
|
{
|
|
public class Startup
|
|
{
|
|
public void ConfigureServices(IServiceCollection service)
|
|
{
|
|
service.AddSingleton<TemporaryFileManager, TemporaryFileManager>();
|
|
service.AddSingleton(new ParallelOptions
|
|
{
|
|
MaxDegreeOfParallelism = Environment.ProcessorCount
|
|
});
|
|
service.AddSingleton(new JsonSerializerOptions());
|
|
}
|
|
|
|
public void Configure(ILoggerFactory loggerFactory, ITestOutputHelperAccessor accessor)
|
|
{
|
|
loggerFactory.AddProvider(new XunitTestOutputLoggerProvider(accessor, delegate { return true; }));
|
|
}
|
|
}
|
|
} |