示例#1
0
 public PackageCreator(IFileSystem fileSystem, IGuid guid, IPackageFactory packageFactory, IConfigSettings configSettings,
                       IRepository <Package> packageRepository, IPackageAuthenticator packageAuthenticator, IHashGetter hashGetter,
                       IPackageIdValidator packageIdValidator, IPackageUriValidator packageUriValidator,
                       ILatestVersionChecker latestVersionChecker, ILatestVersionUpdater <Package> latestVersionUpdater)
 {
     _fileSystem           = fileSystem;
     _latestVersionUpdater = latestVersionUpdater;
     _latestVersionChecker = latestVersionChecker;
     _packageIdValidator   = packageIdValidator;
     _guid                 = guid;
     _packageFactory       = packageFactory;
     _configSettings       = configSettings;
     _packageRepository    = packageRepository;
     _packageAuthenticator = packageAuthenticator;
     _hashGetter           = hashGetter;
     _packageUriValidator  = packageUriValidator;
 }
示例#2
0
 public PackageCreator(IFileSystem fileSystem, IGuid guid, IPackageFactory packageFactory, IConfigSettings configSettings,
     IRepository<Package> packageRepository, IPackageAuthenticator packageAuthenticator, IHashGetter hashGetter,
     IPackageIdValidator packageIdValidator, IPackageUriValidator packageUriValidator,
     ILatestVersionChecker latestVersionChecker, ILatestVersionUpdater<Package> latestVersionUpdater)
 {
     _fileSystem = fileSystem;
     _latestVersionUpdater = latestVersionUpdater;
     _latestVersionChecker = latestVersionChecker;
     _packageIdValidator = packageIdValidator;
     _guid = guid;
     _packageFactory = packageFactory;
     _configSettings = configSettings;
     _packageRepository = packageRepository;
     _packageAuthenticator = packageAuthenticator;
     _hashGetter = hashGetter;
     _packageUriValidator = packageUriValidator;
 }
示例#3
0
        public void SetUp()
        {
            _mockedPackageRepository = new Mock<IRepository<Package>>();

            _latestVersionChecker = new Core.Impl.LatestVersionChecker(_mockedPackageRepository.Object);
        }
示例#4
0
        public void SetUp()
        {
            _mockedPackageRepository = new Mock <IRepository <Package> >();

            _latestVersionChecker = new Core.Impl.LatestVersionChecker(_mockedPackageRepository.Object);
        }