public void GetNoCacheHeadersWithOverride_ConfigOverriden_ReturnsOverrideElement() { var configOverride = new SimpleBooleanConfiguration { Enabled = true }; _headerConfigurationOverrideHelper.SetNoCacheHeadersOverride(_mockContext, configOverride); Assert.AreSame(configOverride, _headerConfigurationOverrideHelper.GetNoCacheHeadersWithOverride(_mockContext)); }
public override void OnActionExecuting(ActionExecutingContext filterContext) { _configurationOverrideHelper.SetNoCacheHeadersOverride(filterContext.HttpContext, _config); base.OnActionExecuting(filterContext); }