public void GetXDownloadOptionsWithOverride_ConfigOverriden_ReturnsOverrideElement() { var configOverride = new SimpleBooleanConfiguration { Enabled = true }; _headerConfigurationOverrideHelper.SetXDownloadOptionsOverride(_mockContext, configOverride); Assert.AreSame(configOverride, _headerConfigurationOverrideHelper.GetXDownloadOptionsWithOverride(_mockContext)); }
public override void OnActionExecuting(ActionExecutingContext filterContext) { _headerConfigurationOverrideHelper.SetXDownloadOptionsOverride(filterContext.HttpContext, _config); base.OnActionExecuting(filterContext); }