Пример #1
0
        public void DisposeInstanceHtmlSelector()
        {
            // Arrange
            _htmlSelector = new HtmlSelector(new Uri("https://www.instagram.com/"));

            // Action
            _htmlSelector.Dispose();

            // Assert
            Assert.Throws <ObjectDisposedException>(() => _htmlSelector.Run());
        }
Пример #2
0
        public void DoubleInvokeRunOnWebSite()
        {
            // Arrange
            _htmlSelector = new HtmlSelector(new Uri("https://www.instagram.com/"));

            // Action
            _htmlSelector.Run();

            // Assert
            Assert.Throws <NotSupportedException>(() => _htmlSelector.Run());
        }
 public BritishHorseracingWebReader(IHtmlSelector selector)
 {
     _selector = selector;
 }
Пример #4
0
 public WebPageParser(IHtmlSelector htmlSelector)
 {
     _htmlSelector = htmlSelector;
 }