Beispiel #1
0
 public PackageService(IPackageDeleter packageDeleter, IPackageAuthenticator packageAuthenticator,
     IPackageUpdater packageUpdater, IWebFaultExceptionCreator webFaultExceptionCreator, IServiceInputValidator serviceInputValidator, ILogger logger,
     IPackageGetter packageGetter, IPackageRatingUpdater packageRatingUpdater, IRatingAuthorizer ratingAuthorizer,
     IUnfinishedPackageGetter unfinishedPackageGetter)
     : base(webFaultExceptionCreator, logger)
 {
     _packageUpdater = packageUpdater;
     _serviceInputValidator = serviceInputValidator;
     _packageDeleter = packageDeleter;
     _packageAuthenticator = packageAuthenticator;
     _packageGetter = packageGetter;
     _packageRatingUpdater = packageRatingUpdater;
     _ratingAuthorizer = ratingAuthorizer;
     _unfinishedPackageGetter = unfinishedPackageGetter;
 }
Beispiel #2
0
 public PackageService(IPackageDeleter packageDeleter, IPackageAuthenticator packageAuthenticator,
                       IPackageUpdater packageUpdater, IWebFaultExceptionCreator webFaultExceptionCreator, IServiceInputValidator serviceInputValidator, ILogger logger,
                       IPackageGetter packageGetter, IPackageRatingUpdater packageRatingUpdater, IRatingAuthorizer ratingAuthorizer,
                       IUnfinishedPackageGetter unfinishedPackageGetter)
     : base(webFaultExceptionCreator, logger)
 {
     _packageUpdater          = packageUpdater;
     _serviceInputValidator   = serviceInputValidator;
     _packageDeleter          = packageDeleter;
     _packageAuthenticator    = packageAuthenticator;
     _packageGetter           = packageGetter;
     _packageRatingUpdater    = packageRatingUpdater;
     _ratingAuthorizer        = ratingAuthorizer;
     _unfinishedPackageGetter = unfinishedPackageGetter;
 }
Beispiel #3
0
 public void SetUp()
 {
     _mockedPackageAuthenticator = new Mock <IPackageAuthenticator>();
     _mockedPackageRepository    = new Mock <IRepository <Package> >();
     _packageGetter = new Infrastructure.Impl.PackageGetter(_mockedPackageAuthenticator.Object, _mockedPackageRepository.Object);
 }
Beispiel #4
0
 public void SetUp()
 {
     _mockedPackageAuthenticator = new Mock<IPackageAuthenticator>();
     _mockedPackageRepository = new Mock<IRepository<Package>>();
     _packageGetter = new Infrastructure.Impl.PackageGetter(_mockedPackageAuthenticator.Object, _mockedPackageRepository.Object);
 }