阅读背景:

如何初始化IOption 以便对.NET核心MVC服务进行单元测试?

来源:互联网 

I have a .NET core MVC rest service. I have a controller I wish to test. This controller has a constructor argument of IOptions where AppSettings is my class for config settings ( I store my database connection string in it). It gets injected from the setup in ConfigureServices in Startup.csI have a .NET core MVC rest service. I have a c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: