public void GetXRobotsTagWithOverride_ConfigOverriden_ReturnsOverrideElement() { var configOverride = new XRobotsTagConfiguration { Enabled = true, NoIndex = true }; _headerConfigurationOverrideHelper.SetXRobotsTagHeaderOverride(_mockContext, configOverride); Assert.AreSame(configOverride, _headerConfigurationOverrideHelper.GetXRobotsTagWithOverride(_mockContext)); }
public override void OnActionExecuting(ActionExecutingContext filterContext) { _headerConfigurationOverrideHelper.SetXRobotsTagHeaderOverride(filterContext.HttpContext, _config); base.OnActionExecuting(filterContext); }