Exemplo n.º 1
0
        public void SetUp()
        {
            _mockedPackageLatestVersionGetter      = new Mock <ILatestVersionGetter <Package> >();
            _mockedPackageRecommendedVersionSetter = new Mock <IRecommendedVersionSetter <Package> >();

            _manager = new Core.Impl.RecommendedVersionManager <Package>(_mockedPackageLatestVersionGetter.Object,
                                                                         _mockedPackageRecommendedVersionSetter.Object);
        }
        public void SetUp()
        {
            _mockedPackageLatestVersionGetter = new Mock<ILatestVersionGetter<Package>>();
            _mockedPackageRecommendedVersionSetter = new Mock<IRecommendedVersionSetter<Package>>();

            _manager = new Core.Impl.RecommendedVersionManager<Package>(_mockedPackageLatestVersionGetter.Object,
                _mockedPackageRecommendedVersionSetter.Object);
        }
Exemplo n.º 3
0
 public PackageUnpublisher(IRepository<Package> packageRepository, IRepository<PublishedPackage> publishedPackageRepository,
     IPackageAuthenticator packageAuthenticator, IRecommendedVersionManager<Package> packageRecommendedVersionManager,
     IRecommendedVersionManager<PublishedPackage> publishedPackageRecommendedVersionManager, IPackageLogEntryCreator packageLogEntryCreator)
 {
     _packageRepository = packageRepository;
     _publishedPackageRepository = publishedPackageRepository;
     _packageAuthenticator = packageAuthenticator;
     _packageRecommendedVersionManager = packageRecommendedVersionManager;
     _publishedPackageRecommendedVersionManager = publishedPackageRecommendedVersionManager;
     _packageLogEntryCreator = packageLogEntryCreator;
 }
Exemplo n.º 4
0
 public PackageUnpublisher(IRepository <Package> packageRepository, IRepository <PublishedPackage> publishedPackageRepository,
                           IPackageAuthenticator packageAuthenticator, IRecommendedVersionManager <Package> packageRecommendedVersionManager,
                           IRecommendedVersionManager <PublishedPackage> publishedPackageRecommendedVersionManager, IPackageLogEntryCreator packageLogEntryCreator)
 {
     _packageRepository                         = packageRepository;
     _publishedPackageRepository                = publishedPackageRepository;
     _packageAuthenticator                      = packageAuthenticator;
     _packageRecommendedVersionManager          = packageRecommendedVersionManager;
     _publishedPackageRecommendedVersionManager = publishedPackageRecommendedVersionManager;
     _packageLogEntryCreator                    = packageLogEntryCreator;
 }
Exemplo n.º 5
0
 public PackageDeleter(IRepository <Package> packageRepository, IRepository <Screenshot> screenshotRespository,
                       IRepository <PublishedPackage> publishedPackageRepository, IRepository <PublishedScreenshot> publishedScreenshotRepository,
                       IPackageFileGetter packageFileGetter, IFileSystem fileSystem, IPackageLogEntryCreator packageLogEntryCreator,
                       IRepository <Dependency> dependencyRepository, IRecommendedVersionManager <Package> packageRecommendedVersionManager,
                       IRecommendedVersionManager <PublishedPackage> publishedPackageRecommendedVersionManager, IPackageDataAggregateUpdater packageDataAggregateUpdater, IRepository <PackageDataAggregate> packageDataAggregateRepository)
 {
     _packageLogEntryCreator         = packageLogEntryCreator;
     _packageDataAggregateRepository = packageDataAggregateRepository;
     _dependencyRepository           = dependencyRepository;
     _packageRepository             = packageRepository;
     _screenshotRespository         = screenshotRespository;
     _publishedPackageRepository    = publishedPackageRepository;
     _publishedScreenshotRepository = publishedScreenshotRepository;
     _packageFileGetter             = packageFileGetter;
     _fileSystem = fileSystem;
     _packageRecommendedVersionManager = packageRecommendedVersionManager;
     _publishedPackagePublishedPackageRecommendedVersionManager = publishedPackageRecommendedVersionManager;
     _packageDataAggregateUpdater = packageDataAggregateUpdater;
 }
Exemplo n.º 6
0
 public PackageDeleter(IRepository<Package> packageRepository, IRepository<Screenshot> screenshotRespository,
     IRepository<PublishedPackage> publishedPackageRepository, IRepository<PublishedScreenshot> publishedScreenshotRepository,
     IPackageFileGetter packageFileGetter, IFileSystem fileSystem, IPackageLogEntryCreator packageLogEntryCreator,
     IRepository<Dependency> dependencyRepository, IRecommendedVersionManager<Package> packageRecommendedVersionManager,
     IRecommendedVersionManager<PublishedPackage> publishedPackageRecommendedVersionManager, IPackageDataAggregateUpdater packageDataAggregateUpdater, IRepository<PackageDataAggregate> packageDataAggregateRepository)
 {
     _packageLogEntryCreator = packageLogEntryCreator;
     _packageDataAggregateRepository = packageDataAggregateRepository;
     _dependencyRepository = dependencyRepository;
     _packageRepository = packageRepository;
     _screenshotRespository = screenshotRespository;
     _publishedPackageRepository = publishedPackageRepository;
     _publishedScreenshotRepository = publishedScreenshotRepository;
     _packageFileGetter = packageFileGetter;
     _fileSystem = fileSystem;
     _packageRecommendedVersionManager = packageRecommendedVersionManager;
     _publishedPackagePublishedPackageRecommendedVersionManager = publishedPackageRecommendedVersionManager;
     _packageDataAggregateUpdater = packageDataAggregateUpdater;
 }