public void SecurityHeadersMiddleware_adds_ReferrerPolicy()
        {
            var context = new DefaultHttpContext();

            SecurityHeadersMiddleware.AddHeaders(context);

            Assert.True(context.Response.Headers.TryGetValue("Referrer-Policy", out var someHeader));
        }
        public void SecurityHeadersMiddleware_adds_XXSSProtection()
        {
            var context = new DefaultHttpContext();

            SecurityHeadersMiddleware.AddHeaders(context);

            Assert.True(context.Response.Headers.TryGetValue("X-XSS-Protection", out var someHeader));
        }
        public void SecurityHeadersMiddleware_adds_XContentTypeOptions()
        {
            var context = new DefaultHttpContext();

            SecurityHeadersMiddleware.AddHeaders(context);

            Assert.True(context.Response.Headers.TryGetValue("X-Content-Type-Options", out var someHeader));
        }
        public void SecurityHeadersMiddleware_adds_ExpectCT()
        {
            var context = new DefaultHttpContext();

            SecurityHeadersMiddleware.AddHeaders(context);

            Assert.True(context.Response.Headers.TryGetValue("Expect-CT", out var someHeader));
        }