Beispiel #1
0
        public void ReadPackages_OneNewerPackageVersionAvailable_NewerPackageVersionDisplayed()
        {
            CreateViewModel();
            AddPackageToLocalRepository("1.0.0.0");
            FakePackage newerPackage = AddPackageToAggregateRepository("1.1.0.0");

            viewModel.ReadPackages();
            CompleteReadPackagesTask();

            var expectedPackages = new FakePackage[] {
                newerPackage
            };

            PackageCollectionAssert.AreEqual(expectedPackages, viewModel.PackageViewModels);
        }
 void ViewModelHasTwoPackagesThatCanBeUpdatedAfterReadingPackages()
 {
     AddPackageToLocalRepository("First", "1.0.0.0");
     AddPackageToActiveRepository("First", "1.1.0.0");
     AddPackageToLocalRepository("Second", "1.0.0.0");
     AddPackageToActiveRepository("Second", "1.1.0.0");
     viewModel.ReadPackages();
     CompleteReadPackagesTask();
 }