Esempio 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>();
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio n. 4
0
        internal InvocationTracker(ISetupManager setupManager)
        {
            ArgumentChecker.NotNull(setupManager, () => setupManager);

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

            _setupManager = setupManager;
        }