Example #1
0
        public ETagCommandMiddlewareTests()
        {
            A.CallTo(() => httpContextAccessor.HttpContext)
            .Returns(httpContext);

            sut = new ETagCommandMiddleware(httpContextAccessor);
        }
        public ETagCommandMiddlewareTests()
        {
            A.CallTo(() => httpContextAccessor.HttpContext.Request.Headers)
            .Returns(requestHeaders);

            sut = new ETagCommandMiddleware(httpContextAccessor);
        }