public virtual void Setup() { Unit = new HttpContextPolicyProvider(); _requestHeaders = new NameValueCollection(); _responseHeaders = new NameValueCollection(); HttpContextManager.SetCurrentContext(GetMockedHttpContext()); }
public override void Setup() { Unit = new HttpContextPolicyProvider(new List <IHttpContextPolicy>() { new ResponseHeaderRestrictedCachePolicy() }); _requestHeaders = new NameValueCollection(); _responseHeaders = new NameValueCollection(); HttpContextManager.SetCurrentContext(GetMockedHttpContext()); }