Example #1
0
 public DeleteCategoryProcessStartedEventHandler(
     ISearchableCategoryIndexer categoryIndexer,
     ILogger <DeleteCategoryProcessStartedEventHandler> logger,
     IDeleteValidator deleteValidator,
     IEventPublisher eventPublisher,
     IEventStore <Aggregates.Category> eventStore)
     : base(eventPublisher, eventStore)
 {
     _categoryIndexer = categoryIndexer;
     _logger          = logger;
     _deleteValidator = deleteValidator;
 }
Example #2
0
 public DeleteValidator(IDeleteValidator deleteValidator)
 {
     _deleteValidator = deleteValidator;
 }
 public AsyncDeleteValidationDecorator(IAsyncDeleteOperator <TEntity, object> deleteOperator, IDeleteValidator <TEntity, object> validator) : base(deleteOperator, validator)
 {
 }
Example #4
0
 public Validator(IUpdateValidator updateValidator, ICreateValidator createValidator, IDeleteValidator deleteValidator)
 {
     this.updateValidator = updateValidator;
     this.createValidator = createValidator;
     this.deleteValidator = deleteValidator;
 }
 public ModelStatePopulator(ICreateValidator <TModel> createValidator, IUpdateValidator <TModel, TKey> updateValidator, IDeleteValidator <TModel> deleteValidator)
 {
     _createValidator = createValidator ?? throw new ArgumentNullException(nameof(createValidator));
     _updateValidator = updateValidator ?? throw new ArgumentNullException(nameof(updateValidator));
     _deleteValidator = deleteValidator ?? throw new ArgumentNullException(nameof(deleteValidator));
 }