涉及到有配置的这些接口的 unit test怎么处理
这个你需要用 Mock 库去模拟接口返回的数据,Mock库有很多,比如moq,你可以google 下。
https://www.c-sharpcorner.com/article/moq-unit-test-net-core-app-using-mock-object/
https://stackoverflow.com/questions/49934707/automapper-in-xunit-testing-and-net-core-2-0