public void GetXFrameoptionsWithOverride_ConfigOverriden_ReturnsOverrideElement() { var configOverride = new XFrameOptionsConfiguration { Policy = XfoPolicy.Deny }; _headerConfigurationOverrideHelper.SetXFrameoptionsOverride(_mockContext, configOverride); Assert.AreSame(configOverride, _headerConfigurationOverrideHelper.GetXFrameoptionsWithOverride(_mockContext)); }
public override void OnActionExecuting(ActionExecutingContext filterContext) { _configurationOverrideHelper.SetXFrameoptionsOverride(filterContext.HttpContext, _config); base.OnActionExecuting(filterContext); }