コード例 #1
0
        public void SetUp()
        {
            _semanticSearchProducer = Substitute.For <ISemanticSearchProducer>();
            _semanticSearchConsumer = Substitute.For <ISemanticSearchConsumer>();

            _sut = new SemanticSearchProcessor(Substitute.For <ILogger <SemanticSearchProcessor> >(), _semanticSearchProducer, _semanticSearchConsumer);
        }
コード例 #2
0
 public SemanticSearchProcessor
 (
     ILogger <SemanticSearchProcessor> logger,
     ISemanticSearchProducer semanticSearchProducer,
     ISemanticSearchConsumer semanticSearchConsumer
 )
 {
     _logger = logger;
     _semanticSearchProducer = semanticSearchProducer;
     _semanticSearchConsumer = semanticSearchConsumer;
 }