public async Task CallsDependencies() { await Target.SearchSideBySide(ViewModel); FeatureFlagService.Verify( x => x.IsSearchSideBySideEnabled(TestUtility.FakeUser), Times.Once); SearchSideBySideService.Verify( x => x.RecordFeedbackAsync(ViewModel, "https://localhost/experiments/search-sxs?q=json"), Times.Once); }
public async Task CallsDependencies() { await Target.SearchSideBySide(SearchTerm); FeatureFlagService.Verify( x => x.IsSearchSideBySideEnabled(TestUtility.FakeUser), Times.Once); SearchSideBySideService.Verify( x => x.SearchAsync(SearchTerm, TestUtility.FakeUser), Times.Once); }