public void SearchQueryKeyShouldBeExpected(string query, string expected) { var sut = BlobCacheKeys.GetKeyForSearch(query); sut.Should().Be(expected); }
public IObservable <DuckDuckGoSearchResult> Search(string query) { return(_stateService.GetOrFetch(BlobCacheKeys.GetKeyForSearch(query), async() => await _duckDuckGoApiService.UserInitiated.Search(query), absoluteExpiration: DateTime.UtcNow.AddDays(7))); }