コード例 #1
0
 public CampaignValidationService(
     IConditionValidationService conditionValidationService,
     IRuleContentValidationService contentValidationService)
 {
     _conditionValidationService = conditionValidationService;
     _contentValidationService   = contentValidationService;
 }
コード例 #2
0
 public BurnRuleService(
     string assetName,
     IBurnRuleRepository burnRuleRepository,
     IBurnRuleContentRepository burnRuleContentRepository,
     IRabbitPublisher <SpendRuleChangedEvent> spendRuleChangeEventPublisher,
     ILogFactory logFactory,
     IFileService fileService,
     IRuleContentValidationService burnRuleContentValidation,
     IBurnRulePartnerRepository burnRulePartnerRepository)
 {
     _burnRuleRepository = burnRuleRepository ??
                           throw new ArgumentException(nameof(burnRuleRepository));
     _burnRuleContentRepository = burnRuleContentRepository ??
                                  throw new ArgumentNullException(nameof(burnRuleContentRepository));
     _spendRuleChangeEventPublisher = spendRuleChangeEventPublisher;
     _fileService = fileService ??
                    throw new ArgumentNullException(nameof(fileService));
     _burnRuleContentValidation = burnRuleContentValidation ??
                                  throw new ArgumentNullException(nameof(burnRuleContentValidation));
     _burnRulePartnerRepository = burnRulePartnerRepository;
     _log       = logFactory.CreateLog(this);
     _assetName = assetName ??
                  throw new ArgumentNullException(nameof(assetName));
 }