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