public void GetXFrameOptionsConfiguration_NoOwinContext_ReturnsSystemWebConfig() { var config = new XFrameOptionsConfiguration(); _systemWebContext.XFrameOptions = config; var result = _contextHelper.GetXFrameOptionsConfiguration(_mockContext); Assert.Same(config, result); }
public void GetXFrameOptionsConfiguration_ReturnsContextConfig() { var config = new XFrameOptionsConfiguration(); _nwContext.XFrameOptions = config; var result = _contextHelper.GetXFrameOptionsConfiguration(_mockContext); Assert.Same(config, result); }