.Net Core unit test this : return Redirect(Request.GetTypedHeaders().Referer.PathAndQuery);

前端 未结 0 1238
眼角桃花
眼角桃花 2021-02-02 01:54

I have to tes a controller where some method return Redirect(Request.GetTypedHeaders().Referer.PathAndQuery);

The problem is I get a null exception because Request is emp

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