.NET Core configuration allows so many options to add values (environment variables, json files, command line args).
I just can\'t figure out and find an answer how
Would AddInMemoryCollection extension method help?
You can pass a key-value collection into it: IEnumerable> with the data you might need for a test.
IEnumerable>
var builder = new ConfigurationBuilder(); builder.AddInMemoryCollection(new Dictionary { { "key", "value" } });