Example #1
0
        public void OnRequest(Action <IWebRequestEventConfigurator> config)
        {
            if (config == null)
            {
                return;
            }

            var spec = new WebRequestEventSpecification(_eventHandlerFactory);

            config(spec);
            WebRequestSpecifications.Add(spec);
        }
        public void SetUp()
        {
            _eventHandlerFactory = A.Fake <IEventHandlerFactory>();

            _sut = new WebRequestEventSpecification(_eventHandlerFactory);
        }