static XUnit2UnitTestSpecificationAsync() { LogFactoryExtensions.InitializeOnce(); NLogBuilderExtensions.ConfigureNLogOnce(new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) .Build()); NLogCapturingTargetExtensions.RegisterOutputOnce(); }
public Startup( IConfiguration configuration) { Configuration = configuration; NLogBuilderExtensions.ConfigureNLogOnce(configuration); }