public UpdateDocumentAssetCommandHandler( CofoundryDbContext dbContext, EntityAuditHelper entityAuditHelper, EntityTagHelper entityTagHelper, DocumentAssetCommandHelper documentAssetCommandHelper, ITransactionScopeFactory transactionScopeFactory ) { _dbContext = dbContext; _entityAuditHelper = entityAuditHelper; _entityTagHelper = entityTagHelper; _documentAssetCommandHelper = documentAssetCommandHelper; _transactionScopeFactory = transactionScopeFactory; }
public AddDocumentAssetCommandHandler( CofoundryDbContext dbContext, EntityAuditHelper entityAuditHelper, EntityTagHelper entityTagHelper, DocumentAssetCommandHelper documentAssetCommandHelper, ITransactionScopeManager transactionScopeFactory, IMessageAggregator messageAggregator ) { _dbContext = dbContext; _entityAuditHelper = entityAuditHelper; _entityTagHelper = entityTagHelper; _documentAssetCommandHelper = documentAssetCommandHelper; _transactionScopeFactory = transactionScopeFactory; _messageAggregator = messageAggregator; }
public IEnumerable <ValidationResult> Validate(ValidationContext validationContext) { return(DocumentAssetCommandHelper.Validate(File)); }