Beispiel #1
0
        public void GetReferrerPolicyConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new ReferrerPolicyConfiguration();

            _systemWebContext.ReferrerPolicy = config;

            var result = _contextHelper.GetReferrerPolicyConfiguration(_mockContext);

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

            _nwContext.ReferrerPolicy = config;

            var result = _contextHelper.GetReferrerPolicyConfiguration(_mockContext);

            Assert.Same(config, result);
        }