Esempio n. 1
0
        public void GetXXssProtectionConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new XXssProtectionConfiguration();

            _systemWebContext.XXssProtection = config;

            var result = _contextHelper.GetXXssProtectionConfiguration(_mockContext);

            Assert.Same(config, result);
        }
Esempio n. 2
0
        public void GetXXssProtectionConfiguration_ReturnsContextConfig()
        {
            var config = new XXssProtectionConfiguration();

            _nwContext.XXssProtection = config;

            var result = _contextHelper.GetXXssProtectionConfiguration(_mockContext);

            Assert.Same(config, result);
        }