public async Task GivenEnableExtendedQueryTagsIsDisabled_WhenGetExtendedQueryTagsIsCalledMultipleTimes_ThenExtendedQueryTagStoreShouldNotBeCalled() { FeatureConfiguration featureConfiguration = new FeatureConfiguration() { EnableExtendedQueryTags = false }; IQueryTagService indexableDicomTagService = new QueryTagService(_extendedQueryTagStore, Options.Create(featureConfiguration)); await indexableDicomTagService.GetQueryTagsAsync(); await _extendedQueryTagStore.DidNotReceiveWithAnyArgs().GetExtendedQueryTagsAsync(default, default, default);
public async Task GivenEnableExtendedQueryTagsIsDisabled_WhenGetExtendedQueryTagsIsCalledMultipleTimes_ThenExtendedQueryTagStoreShouldNotBeCalled() { FeatureConfiguration featureConfiguration = new FeatureConfiguration() { EnableExtendedQueryTags = false }; IQueryTagService indexableDicomTagService = new QueryTagService(_extendedQueryTagStore, Options.Create(featureConfiguration)); await indexableDicomTagService.GetQueryTagsAsync(); await _extendedQueryTagStore.DidNotReceive().GetExtendedQueryTagsAsync(Arg.Any <string>(), Arg.Any <CancellationToken>()); }