Exemple #1
0
        public LinkService(ILinkRepository linkRepository, ILinkCrawlerService linkCrawler, HttpHelper httpHelper)
        {
            Ensure.That(() => linkRepository).IsNotNull();
            Ensure.That(() => linkCrawler).IsNotNull();
            Ensure.That(() => httpHelper).IsNotNull();

            this.linkRepository = linkRepository;
            this.linkCrawler = linkCrawler;
            this.httpHelper = httpHelper;
        }
 public void TestInit()
 {
     MockHelpers.SetupFakeWebClient();
     linkCrawler = MockHelpers.FakeLinkCrawler();
 }