public IEnumerable<PackageOperation> GetUpdatePackageOperations(
			IEnumerable<IPackage> packages,
			IUpdatePackageSettings settings)
        {
            IPackageOperationResolver resolver = CreateUpdatePackageOperationResolver(settings);

            var reducedOperations = new ReducedPackageOperations(resolver, packages);
            reducedOperations.Reduce();
            return reducedOperations.Operations;
        }
        public IEnumerable <PackageOperation> GetUpdatePackageOperations(
            IEnumerable <IPackage> packages,
            IUpdatePackageSettings settings)
        {
            IPackageOperationResolver resolver = CreateUpdatePackageOperationResolver(settings);

            var reducedOperations = new ReducedPackageOperations(resolver, packages);

            reducedOperations.Reduce();
            return(reducedOperations.Operations);
        }
 void CreateReducedPackageOperations()
 {
     packages = new List<IPackage>();
     fakePackageOperationResolver = MockRepository.GenerateStub<IPackageOperationResolver>();
     reducedPackageOperations = new ReducedPackageOperations(fakePackageOperationResolver, packages);
 }
		void CreateReducedPackageOperations ()
		{
			packages = new List<IPackage> ();
			fakePackageOperationResolver = new FakePackageOperationResolver ();
			reducedPackageOperations = new ReducedPackageOperations (fakePackageOperationResolver, packages);
		}