public void TestInitialize()
 {
     _cache             = Substitute.For <IMemoryCache>();
     _storageService    = Substitute.For <IStorageService>();
     _connector         = Substitute.For <ILanguageUnderstandingConnector>();
     _commandProcessors = new List <ICommandProcessor>();
     _service           = new CognitiveService(_cache, _storageService, _commandProcessors, _connector);
 }
Example #2
0
        #pragma warning restore CA2213

        /// <summary>Initializes a new instance of the <see cref="CognitiveService"/> class.</summary>
        public CognitiveService(
            IMemoryCache cache,
            IStorageService storageService,
            IEnumerable <ICommandProcessor> commandProcessors,
            ILanguageUnderstandingConnector connector)
        {
            _cache             = cache;
            _storageService    = storageService;
            _commandProcessors = commandProcessors;
            _connector         = connector;
        }