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

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

            _setupManager = setupManager;
        }