private IEnumerable <ApiDescription> GetApiDescriptionsFor(string apiVersion)
        {
            Contract.Ensures(Contract.Result <IEnumerable <ApiDescription> >() != null);

            Contract.Assume(_options.VersionSupportResolver == null || _odataApiExplorer.ApiDescriptions != null);

            var result = _options.VersionSupportResolver == null
                ? _odataApiExplorer.ApiDescriptions
                : _odataApiExplorer.ApiDescriptions.Where(apiDesc => _options.VersionSupportResolver(apiDesc, apiVersion));

            Contract.Assume(result != null);
            return(result);
        }
 private IEnumerable <ApiDescription> GetApiDescriptionsFor(string apiVersion)
 {
     return(_options.VersionSupportResolver == null
         ? _odataApiExplorer.ApiDescriptions
         : _odataApiExplorer.ApiDescriptions.Where(apiDesc => _options.VersionSupportResolver(apiDesc, apiVersion)));
 }