Esempio n. 1
0
        public void SetUp()
        {
            _banlistUrlDataSource = Substitute.For <IBanlistUrlDataSource>();
            _articleProcessor     = Substitute.For <IArticleProcessor>();
            _logger = Substitute.For <ILogger <BanlistProcessor> >();

            _sut = new BanlistProcessor
                   (
                _banlistUrlDataSource,
                _articleProcessor,
                _logger
                   );
        }
Esempio n. 2
0
 public BanlistProcessor(IBanlistUrlDataSource banlistUrlDataSource, IArticleHandler articleHandler)
 {
     _banlistUrlDataSource = banlistUrlDataSource;
     _articleHandler       = articleHandler;
     _logger = LogManager.GetCurrentClassLogger();
 }
 public BanlistProcessor(IBanlistUrlDataSource banlistUrlDataSource, IArticleProcessor articleProcessor, ILogger <BanlistProcessor> logger)
 {
     _banlistUrlDataSource = banlistUrlDataSource;
     _articleProcessor     = articleProcessor;
     _logger = logger;
 }