Exemplo n.º 1
0
        public Scraper(IHtmlWebService htmlWebService, ISetupManager setupManager, IHtmlProcessor htmlProcessor)
        {
            _htmlWebService = htmlWebService;
            _setupManager   = setupManager;
            _htmlProcessor  = htmlProcessor;

            _robots        = new Robots(string.Empty);
            _processedList = new List <string>();
            _toProcessList = new Stack <string>();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SmocksContext" /> class.
        /// </summary>
        /// <param name="setupManager">The setup manager.</param>
        /// <param name="invocationTracker">The invocation tracker.</param>
        /// <param name="eventInterceptor">The event interceptor.</param>
        internal SmocksContext(ISetupManager setupManager, IInvocationTracker invocationTracker, EventInterceptor eventInterceptor)
        {
            ArgumentChecker.NotNull(setupManager, nameof(setupManager));
            ArgumentChecker.NotNull(invocationTracker, nameof(invocationTracker));
            ArgumentChecker.NotNull(eventInterceptor, nameof(eventInterceptor));

            _setupManager      = setupManager;
            _invocationTracker = invocationTracker;
            _eventInterceptor  = eventInterceptor;
        }
Exemplo n.º 3
0
        internal SetupMatcher(ISetupManager setupManager,
                              ITargetMatcher targetMatcher,
                              IArgumentMatcher argumentMatcher)
        {
            ArgumentChecker.NotNull(setupManager, () => setupManager);
            ArgumentChecker.NotNull(targetMatcher, () => targetMatcher);
            ArgumentChecker.NotNull(argumentMatcher, () => argumentMatcher);

            _setupManager    = setupManager;
            _targetMatcher   = targetMatcher;
            _argumentMatcher = argumentMatcher;
        }
Exemplo n.º 4
0
        internal InvocationTracker(ISetupManager setupManager)
        {
            ArgumentChecker.NotNull(setupManager, () => setupManager);

            _setupManager = setupManager;
        }
Exemplo n.º 5
0
 public void TestInitialize()
 {
     _setupAccessorMock = new SetupAccessorMock();
     _setupManager      = new SetupManager(_setupAccessorMock);
     _setups            = null;
 }
Exemplo n.º 6
0
 void ISetSetupPageViewModel.SetSetup(ISetupManager manager)
 {
     Setup = manager;
 }
Exemplo n.º 7
0
 public Crawler(ISetupManager setupManager, IScraper scraper)
 {
     _setupManager = setupManager;
     _scraper      = scraper;
 }
Exemplo n.º 8
0
        internal InvocationTracker(ISetupManager setupManager)
        {
            ArgumentChecker.NotNull(setupManager, () => setupManager);

            _setupManager = setupManager;
        }