UnitTestsFixture.cs 517 B

1234567891011121314151617181920212223
  1. using System.IO;
  2. using Microsoft.Extensions.Configuration;
  3. namespace Tede.Data.Tests.Utils
  4. {
  5. public class UnitTestsFixture
  6. {
  7. public IConfigurationRoot Config { get; set; }
  8. public UnitTestsFixture()
  9. {
  10. var contentRootPath = Directory.GetCurrentDirectory();
  11. var config = new ConfigurationBuilder()
  12. .SetBasePath(contentRootPath)
  13. .AddJsonFile("ss.json")
  14. .Build();
  15. Config = config;
  16. }
  17. }
  18. }