public PostCounterTest() { CounterTest countertest = new CounterTest(); AddDependentObject(countertest); PostTest Posttest = new PostTest(); AddDependentObject(Posttest); mPostCounter = new PostCounter(); mPostCounter.Counter = countertest.Counter; mPostCounter.Post = Posttest.Post; }
protected Downloader(IShellService shellService, ICrawlerService crawlerService = null, IBlog blog = null) { this.shellService = shellService; this.crawlerService = crawlerService; this.blog = blog; counter = new PostCounter(blog); files = LoadFiles(); lockObjectDb = new object(); lockObjectDirectory = new object(); lockObjectDownload = new object(); lockObjectProgress = new object(); statisticsBag = new ConcurrentBag <Tuple <PostTypes, string, string> >(); producerConsumerCollection = new BlockingCollection <Tuple <PostTypes, string, string> >(); SetUp(); }