You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
596 B

  1. using System.IO;
  2. using Microsoft.Extensions.Configuration;
  3. namespace Cap.Consistency.EntityFrameworkCore.Test
  4. {
  5. public class TestEnvironment
  6. {
  7. public static IConfiguration Config { get; }
  8. static TestEnvironment() {
  9. var configBuilder = new ConfigurationBuilder()
  10. .SetBasePath(Directory.GetCurrentDirectory())
  11. .AddJsonFile("config.json", optional: true)
  12. .AddJsonFile("config.test.json", optional: true)
  13. .AddEnvironmentVariables();
  14. Config = configBuilder.Build();
  15. }
  16. }
  17. }