예제 #1
0
 public ArticleComparer(IArticleProvider articleProvider, ISimilarityCalculator similarityCalculator,
                        IArticleProcessor articleProcessor)
 {
     _articleProvider      = articleProvider;
     _similarityCalculator = similarityCalculator;
     _articleProcessor     = articleProcessor;
 }
예제 #2
0
        public void SetUp()
        {
            _articleProcessor = Substitute.For <IArticleProcessor>();
            _logger           = Substitute.For <ILogger <ArticleProcessor> >();

            _sut = new ArticleProcessorLoggerDecorator(_articleProcessor, _logger);
        }
예제 #3
0
        public void SetUp()
        {
            _validator = Substitute.For <IValidator <CardInformationConsumer> >();

            _articleProcessor = Substitute.For <IArticleProcessor>();

            _logger = Substitute.For <ILogger <CardInformationConsumerHandler> >();

            _sut = new CardInformationConsumerHandler(_articleProcessor, _validator, _logger);
        }
예제 #4
0
        public void SetUp()
        {
            _banlistUrlDataSource = Substitute.For <IBanlistUrlDataSource>();
            _articleProcessor     = Substitute.For <IArticleProcessor>();
            _logger = Substitute.For <ILogger <BanlistProcessor> >();

            _sut = new BanlistProcessor
                   (
                _banlistUrlDataSource,
                _articleProcessor,
                _logger
                   );
        }
 public ArticleProcessLoggerDecorator(IArticleProcessor articleProcessor)
 {
     _articleProcessor = articleProcessor;
     _logger           = LogManager.GetCurrentClassLogger();
 }
 public CardInformationConsumerHandler(IArticleProcessor articleProcessor, IValidator <CardInformationConsumer> validator, ILogger <CardInformationConsumerHandler> logger)
 {
     _articleProcessor = articleProcessor;
     _validator        = validator;
     _logger           = logger;
 }
 public BanlistInformationConsumerHandler(IArticleProcessor articleProcessor, IValidator <BanlistInformationConsumer> validator)
 {
     _articleProcessor = articleProcessor;
     _validator        = validator;
 }
 public void Setup()
 {
     _articleProcessor = Substitute.For <IArticleProcessor>();
     _sut = new ArticleBatchProcessor(_articleProcessor);
 }
예제 #9
0
 public ArticleDto(string relativeFilePath, IArticleProcessor reader)
 {
     SourceFileRelativePath = relativeFilePath;
     ArticleProcessorUsed   = reader;
 }
 public ArticleProcessorLoggerDecorator(IArticleProcessor articleProcessor, ILogger <ArticleProcessor> logger)
 {
     _articleProcessor = articleProcessor;
     _logger           = logger;
 }
예제 #11
0
 public ArticleBatchProcessor(IArticleProcessor articleProcessor)
 {
     _articleProcessor = articleProcessor;
 }
예제 #12
0
 public void SetUp()
 {
     _articleProcessor = Substitute.For <IArticleProcessor>();
     _validator        = Substitute.For <IValidator <BanlistInformationConsumer> >();
     _sut = new BanlistInformationConsumerHandler(_articleProcessor, _validator);
 }
        public void Setup()
        {
            _articleProcessor = Substitute.For <IArticleProcessor>();

            _sut = new ArticleProcessLoggerDecorator(_articleProcessor);
        }
예제 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TinyblogController"/> class.
 /// </summary>
 /// <param name="articleProcessor">The article processor.</param>
 /// <param name="logger">Logger.</param>
 public TinyblogController(IArticleProcessor articleProcessor, ILogger logger)
 {
     this.articleProcessor = articleProcessor;
     this.logger           = logger;
 }
예제 #15
0
 public ArticleDto(string relativeFilePath, IArticleProcessor reader)
 {
     SourceFileRelativePath = relativeFilePath;
     ArticleProcessorUsed = reader;
 }
예제 #16
0
 public BanlistProcessor(IBanlistUrlDataSource banlistUrlDataSource, IArticleProcessor articleProcessor, ILogger <BanlistProcessor> logger)
 {
     _banlistUrlDataSource = banlistUrlDataSource;
     _articleProcessor     = articleProcessor;
     _logger = logger;
 }