public FactsBase() { _config = new SearchServiceConfiguration(); var options = new Mock <IOptionsSnapshot <SearchServiceConfiguration> >(); options.Setup(o => o.Value).Returns(_config); _target = new SearchTextBuilder(options.Object); }
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); }