22 lines
541 B
C#
22 lines
541 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Xunit.DependencyInjection.Logging;
|
|
using Livia.Models;
|
|
using Microsoft.Extensions.Logging;
|
|
using ILogger = Microsoft.Extensions.Logging.ILogger;
|
|
|
|
namespace Livia.Tests;
|
|
|
|
internal class Startup
|
|
{
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddTransient<IAesOperation, AesOperation>();
|
|
|
|
services.AddLogging(lb => lb.AddXunitOutput());
|
|
services.AddSingleton<ILogger>(svc => svc.GetRequiredService<ILogger<object>>());
|
|
}
|
|
}
|
|
|
|
|
|
|