public HackerNewsProviderTests() { pageLoader = NSubstitute.Substitute.For <IAngleSharpPageLoader>(); hackerNewsHtmlDocumentParser = Substitute.For <IHtmlDocumentParser>(); newsProvider = new HackerNewsProvider(pageLoader, hackerNewsHtmlDocumentParser); }
public HackerNewsProvider(IAngleSharpPageLoader pageLoader, IHtmlDocumentParser htmlDocumentParser) { this.pageLoader = pageLoader; this.htmlDocumentParser = htmlDocumentParser; }
public ReportCreater(IHtmlDocumentParser htmlDocumentParser, IRegexHelper regexHelper, IWebHelper restHelper) { _htmlDocumentParser = htmlDocumentParser; _regexHelper = regexHelper; _restHelper = restHelper; }