示例#1
0
        public void Arrange()
        {
            _searchIndexMock = new Mock <ILearningProviderSearchIndex>();

            _loggerMock = new Mock <ILoggerWrapper>();

            _manager = new LearningProviderSearchManager(_searchIndexMock.Object, _loggerMock.Object);

            _cancellationToken = new CancellationToken();
        }
        public void Arrange()
        {
            _searchIndexMock = new Mock <ILearningProviderSearchIndex>();
            _searchIndexMock.Setup(i => i.GetSearchableFieldsAsync(It.IsAny <CancellationToken>()))
            .ReturnsAsync(new[] { "Name", "Type", "OpenDate" });

            _loggerMock = new Mock <ILoggerWrapper>();

            _manager = new LearningProviderSearchManager(_searchIndexMock.Object, _loggerMock.Object);

            _cancellationToken = new CancellationToken();
        }