public void CallsDependenciesForSearchOperation()
            {
                Build();

                TextBuilder.Verify(x => x.ParseV3Search(V3SearchRequest), Times.Once);
                TextBuilder.Verify(x => x.Build(ParsedQuery), Times.Once);
                ParametersBuilder.Verify(x => x.V3Search(V3SearchRequest, It.IsAny <bool>()), Times.Once);
            }
            public void CallsDependenciesForGetOperation()
            {
                ParsedQuery.Grouping[QueryField.PackageId] = new HashSet <string>(new[] { Id });

                Build();

                TextBuilder.Verify(x => x.ParseV3Search(V3SearchRequest), Times.Once);
                TextBuilder.Verify(x => x.Build(It.IsAny <ParsedQuery>()), Times.Never);
                ParametersBuilder.Verify(x => x.V3Search(It.IsAny <V3SearchRequest>(), It.IsAny <bool>()), Times.Never);
            }
            public void BuildsSearchOperation()
            {
                var actual = Target.Autocomplete(AutocompleteRequest);

                Assert.Equal(IndexOperationType.Search, actual.Type);
                Assert.Same(Text, actual.SearchText);
                Assert.Same(Parameters, actual.SearchParameters);
                TextBuilder.Verify(x => x.Autocomplete(AutocompleteRequest), Times.Once);
                ParametersBuilder.Verify(x => x.Autocomplete(AutocompleteRequest, It.IsAny <bool>()), Times.Once);
            }