private IPackageDetails GetPackageDetailsFromSelectedVersion(IPackageDetails packageDetails, IRepository repository)
        {
            if (!string.IsNullOrWhiteSpace(packageDetails.SelectedVersion) && packageDetails.Version.ToString() != packageDetails.SelectedVersion)
            {
                packageDetails = _packageQueryService.GetPackage(repository, packageDetails.Id, packageDetails.SelectedVersion);
            }

            return(packageDetails);
        }
 private void BuildPackageSummary()
 {
     //// Fix: Required since available versions aren't available until dropdown button is displayed.
     if (!string.IsNullOrWhiteSpace(Package.SelectedVersion) && Package.Version.ToString() != Package.SelectedVersion)
     {
         var packageSummary = _packageQueryService.GetPackage(_repositoryNavigatorService.Navigator.SelectedRepository, Package.Id, Package.SelectedVersion);
         PackageSummary = _packageDetailsService.PackageToFlowDocument(packageSummary);
     }
     else
     {
         PackageSummary = _packageDetailsService.PackageToFlowDocument(Package);
     }
 }