protected WebApiBaseStartup(IHostingEnvironment env, CommandLineArgumentsProvider commandLineArgumentsProvider) { var builder = new ConfigurationBuilder() .AddEnvironmentVariables() .AddCommandLine(commandLineArgumentsProvider.Arguments) .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", false, true) .AddJsonFile($"appsettings.{env.EnvironmentName}.json", false, true); Configuration = AddAdditionalConfigurations(env, builder).Build(); }
public TestsStartup(IHostingEnvironment env, CommandLineArgumentsProvider commandLineArgumentsProvider) : base(env, commandLineArgumentsProvider) { }