Beispiel #1
0
 public CrudUpdate(
     IUpdateValidator <TVm> updateValidator,
     IMapper <TVm, TCore> mapper,
     IDbUpdate <TCore> dbUpdate,
     IDbRead <TCore> dbRead)
 {
     _updateValidator = updateValidator;
     _mapper          = mapper;
     _dbUpdate        = dbUpdate;
     _dbRead          = dbRead;
 }
 public Validator(IUpdateValidator updateValidator, ICreateValidator createValidator, IDeleteValidator deleteValidator)
 {
     this.updateValidator = updateValidator;
     this.createValidator = createValidator;
     this.deleteValidator = deleteValidator;
 }
 public AsyncUpdateValidationDecorator(IAsyncUpdateOperator <TEntity, object> updateOperator, IUpdateValidator <TEntity, object> validator) : base(updateOperator, validator)
 {
 }
 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));
 }