public Program() { BuildPath = Path.Combine("bin", "Debug", "netcoreapp2.2"); ProjectPath = AppContext.BaseDirectory.Replace(BuildPath, string.Empty); ContentPath = ProjectPath.Replace("Tests", "API"); _configuration = new ConfigurationBuilder() .SetBasePath(ProjectPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: false) .Build(); }