Exemplo n.º 1
0
            public FactsBase()
            {
                _config = new SearchServiceConfiguration();
                var options = new Mock <IOptionsSnapshot <SearchServiceConfiguration> >();

                options.Setup(o => o.Value).Returns(_config);

                _target = new SearchTextBuilder(options.Object);
            }
Exemplo n.º 2
0
            public FactsBase()
            {
                var config = new SearchServiceConfiguration {
                    MatchAllTermsBoost = 2.0f
                };
                var options = new Mock <IOptionsSnapshot <SearchServiceConfiguration> >();

                options.Setup(o => o.Value).Returns(config);

                _target = new SearchTextBuilder(options.Object);
            }