我正在尝试对我为WebApi2项目编写的基本身份验证过滤器进行单元测试,但我无法模拟OnAuthentication调用中所需的HttpAuthenticationContext对象。publicoverridevoidOnAuthentication(HttpAuthenticationContextcontext){base.OnAuthentication(context);varauthHeader=context.Request.Headers.Authorization;...therestofmycodehere}我试图为模拟设置的实现行是设置authHeader变量的行