Unit test MiddleWare, how to add a HttpRequest to a HttpContext in .NET Core 3.1

后端 未结 0 1593
深忆病人
深忆病人 2020-11-30 23:10

I trying to get my head around how to test a piece of .NET Core middleware.

public class MyMiddleware
    {
    public async Task Invoke(HttpContext context)          


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