Remove DbContext from DI. Testing with WebApplicationFactory

前端 未结 0 1969
谎友^
谎友^ 2020-12-04 04:58

The scenario is .net core 5 Web API, services.AddDbContext is used in Startup.cs ConfigureServices to add SQL server. The test uses the WebApplicationFactory provided by MVC

相关标签:
回答
  • 消灭零回复
提交回复
热议问题