关于[Testing and Configuration in .NET Core]的摘要:
When running automated tests, or running things locally, I often want to use a different configuration to what I would run in production. A JSON file often suffices for local development, however this isn’t useful for automated tests where I want different configurations for different tests, or if my configuration is dynamic (e.g. I need to spin up a docker container during startup, and I have to get some configuration from that on the fly).
原文地址: https://joestead.codes/posts/testing-with-configuration-dotnet/