public CookieHttpResponseMessageHandlerTests() { pathLocator = A.Fake <IPathLocator>(); httpContextAccessor = A.Fake <IHttpContextAccessor>(); setCookieParser = new SetCookieParser(); httpContextAccessor.HttpContext = new DefaultHttpContext(); headerRenamerService = new HeaderRenamerService(); headerCountService = new HeaderCountService(); compositeDataProtectionDataProvider = A.Fake <ICompositeDataProtectionDataProvider>(); cookieHttpResponseMessageHandler = new CookieHttpResponseMessageHandler(httpContextAccessor, pathLocator, setCookieParser, headerRenamerService, headerCountService, compositeDataProtectionDataProvider); }
public CookieHttpResponseMessageHandler( IHttpContextAccessor httpContextAccessor, IPathLocator pathLocator, ISetCookieParser setCookieParser, IHeaderRenamerService headerRenamerService, IHeaderCountService headerCountService, ICompositeDataProtectionDataProvider compositeDataProtectionDataProvider) { this.httpContextAccessor = httpContextAccessor; this.pathLocator = pathLocator; this.setCookieParser = setCookieParser; this.headerRenamerService = headerRenamerService; this.headerCountService = headerCountService; this.compositeDataProtectionDataProvider = compositeDataProtectionDataProvider; }
public CountTests() { headerCountService = new HeaderCountService(); }