Esempio n. 1
0
        public void GetReferrerPolicyConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new ReferrerPolicyConfiguration();

            _systemWebContext.ReferrerPolicy = config;

            var result = _contextHelper.GetReferrerPolicyConfiguration(_mockContext);

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

            _nwContext.ReferrerPolicy = config;

            var result = _contextHelper.GetReferrerPolicyConfiguration(_mockContext);

            Assert.Same(config, result);
        }