Ejemplo n.º 1
0
        IQueryable <IPackage> GetUpdatedPackages()
        {
            IPackageRepository aggregateRepository = registeredPackageRepositories.CreateAggregateRepository();
            UpdatedPackages    updatedPackages     = CreateUpdatedPackages(aggregateRepository);

            updatedPackages.SearchTerms = Filter;
            return(updatedPackages.GetUpdatedPackages().AsQueryable());
        }
Ejemplo n.º 2
0
        IQueryable <IPackage> GetUpdatedPackages()
        {
            IPackageRepository        aggregateRepository = registeredPackageRepositories.CreateAggregateRepository();
            IPackageManagementProject project             = GetSelectedProject(aggregateRepository);
            var updatedPackages = new UpdatedPackages(project, aggregateRepository);

            updatedPackages.SearchTerms = Filter;
            return(updatedPackages.GetUpdatedPackages().AsQueryable());
        }
Ejemplo n.º 3
0
        IQueryable <IPackage> GetUpdatedPackages()
        {
            IPackageRepository repository      = CreatePackageRepositoryForActivePackageSource();
            UpdatedPackages    updatedPackages = CreateUpdatedPackages(repository);

            updatedPackages.SearchTerms = Filter;
            return(updatedPackages
                   .GetUpdatedPackages(IncludePrerelease)
                   .AsQueryable());
        }
Ejemplo n.º 4
0
        public void GetUpdatedPackages_OnePackageReferenceAndUpdateAvailable_UpdatedPackageReturned()
        {
            AddPackageReference("Test", "1.0");
            IPackage expectedPackage  = AddPackageToSourceRepository("Test", "1.1");
            var      expectedPackages = new IPackage[] { expectedPackage };

            CreateUpdatedPackages();

            IEnumerable <IPackage> packages = updatedPackages.GetUpdatedPackages();

            PackageCollectionAssert.AreEqual(expectedPackages, packages);
        }