示例#1
0
        public void should_set_maximum_in_to_passed_value()
        {
            var options = new DeepSearchOptions {
                MaxWaveCount = 53
            };

            Assert.AreEqual(53, options.MaxWaveCount);
        }
示例#2
0
        public DeepSearchService(ICacheService cacheService, ILogger <DeepSearchService> logger, IOptions <DeepSearchOptions> deepSearchOptions, IDeepSearchDispatcher deepSearchDispatcher)
        {
            _cacheService      = cacheService;
            _logger            = logger;
            _deepSearchOptions = deepSearchOptions.Value;

            _deepSearchDispatcher = deepSearchDispatcher;
        }
示例#3
0
 public SearchOptions()
 {
     InitializeComponent();
     Options = new DeepSearchOptions();
 }
示例#4
0
        public void should_set_maximum_in_code_if_not_set()
        {
            var options = new DeepSearchOptions();

            Assert.AreEqual(5, options.MaxWaveCount);
        }