【发布时间】:2018-07-09 09:06:48
【问题描述】:
我的应用程序设计为独立的aspnet core webapi 自托管可执行文件。
要启动可执行文件,必须将配置文件路径作为命令行参数传递(例如 MyServer.exe --config "path-to-config-file")
我想通过集成测试对其进行测试(以下页面:https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-2.1)
我的问题 - 命令行参数如何传递给WebApplicationFactory?
谢谢
【问题讨论】:
标签: c# asp.net-core integration-testing