Exemplo n.º 1
0
 public PackageService(IPackageRepository repo,
                       IAuctionTransactionFactory factory,
                       IPackageValidationService validator)
 {
     _repo = repo;
     _factory = factory;
     _validator = validator;
 }
Exemplo n.º 2
0
 public VcsValidator(
     IPackageValidationService validationService,
     IPackageValidationAuditor validationAuditor,
     ICorePackageService packageService,
     IPackageCriteriaEvaluator criteriaEvaluator,
     IOptionsSnapshot <VcsConfiguration> config,
     ILogger <VcsValidator> logger)
 {
     _validationService = validationService ?? throw new ArgumentNullException(nameof(validationService));
     _validationAuditor = validationAuditor ?? throw new ArgumentNullException(nameof(validationAuditor));
     _packageService    = packageService ?? throw new ArgumentNullException(nameof(packageService));
     _criteriaEvaluator = criteriaEvaluator ?? throw new ArgumentNullException(nameof(criteriaEvaluator));
     _config            = config ?? throw new ArgumentNullException(nameof(config));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public ValidatePackageTask(IPackageValidationService packageValidationService)
 {
     _packageValidationService = packageValidationService;
 }
Exemplo n.º 4
0
 public ValidatePackageTask(IPackageValidationService packageValidationService)
 {
     _packageValidationService = packageValidationService;
 }