public void SetXContentTypeOptionsHeader_NoOverride_DoesNothing()
        {
            var contextConfig = new SimpleBooleanConfiguration();

            _contextHelper.Setup(h => h.GetXContentTypeOptionsConfiguration(It.IsAny <HttpContextBase>())).Returns(contextConfig);
            _configurationOverrideHelper.Setup(h => h.GetXContentTypeOptionsWithOverride(It.IsAny <HttpContextBase>())).Returns((SimpleBooleanConfiguration)null);

            _overrideHelper.SetXContentTypeOptionsHeader(_mockContext);

            _headerGenerator.Verify(g => g.CreateXContentTypeOptionsResult(It.IsAny <SimpleBooleanConfiguration>(), It.IsAny <SimpleBooleanConfiguration>()), Times.Never);
            _headerResultHandler.Verify(h => h.HandleHeaderResult(It.IsAny <HttpResponseBase>(), It.IsAny <HeaderResult>()), Times.Never);
        }
 public override void SetHttpHeadersOnActionExecuted(ActionExecutedContext filterContext)
 {
     _headerOverrideHelper.SetXContentTypeOptionsHeader(filterContext.HttpContext);
 }