コード例 #1
0
        public void GetXDownloadOptionsWithOverride_ConfigOverriden_ReturnsOverrideElement()
        {
            var configOverride = new SimpleBooleanConfiguration {
                Enabled = true
            };

            _headerConfigurationOverrideHelper.SetXDownloadOptionsOverride(_mockContext, configOverride);

            Assert.AreSame(configOverride, _headerConfigurationOverrideHelper.GetXDownloadOptionsWithOverride(_mockContext));
        }
コード例 #2
0
 public override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     _headerConfigurationOverrideHelper.SetXDownloadOptionsOverride(filterContext.HttpContext, _config);
     base.OnActionExecuting(filterContext);
 }