Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
 {
     return(DocumentAssetCommandHelper.Validate(File));
 }