public V3PSAutoCompleteResource(DataClient client, V3ServiceIndexResource serviceIndex, V3RegistrationResource regResource)
     : base()
 {
     _regResource  = regResource;
     _serviceIndex = serviceIndex;
     _client       = client;
 }
        public async Task <INuGetResource> Create(SourceRepository source)
        {
            V3UISearchResource     curResource  = null;
            V3ServiceIndexResource serviceIndex = await source.GetResource <V3ServiceIndexResource>();

            if (serviceIndex != null)
            {
                var rawSearch = await source.GetResource <V3RawSearchResource>();

                curResource = new V3UISearchResource(rawSearch);
            }

            return(curResource);
        }