Example #1
0
        public void setUp()
        {
			_bus = MockRepository.GenerateMock<IMessageBus>();
            _fsService = new FakeFileSystemService();
            _cache = new FakeCache();
            _crawler = new ProjectCrawler(_cache, _fsService, _bus);
        }
Example #2
0
        public void InitializeCache(string watchFolder)
        {
            var fsService = _services.Locate<IFileSystemService>();
            var cache = _services.Locate<ICache>();
			var bus = _services.Locate<IMessageBus>();
            var cacheCrawler = new ProjectCrawler(cache, fsService, bus);
            cacheCrawler.Crawl(watchFolder);
        }