Exemple #1
0
 public PartialUpdateEntitiesCommandHandler(
     ITransactionService <TContext> transactionService,
     IEntityCommandsHelper <TContext> commandsHelper)
 {
     _transactionService = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _commandsHelper     = commandsHelper ?? throw new ArgumentNullException(nameof(commandsHelper));
 }
 public MoveEntityCommandHandler(
     ITransactionService <TContext> transactionService,
     IEntityCommandsHelper <TContext> commandsHelper,
     IPathBuilder <TContext> pathBuilder)
 {
     _transactionService = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _commandsHelper     = commandsHelper ?? throw new ArgumentNullException(nameof(commandsHelper));
     _pathBuilder        = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder));
 }
 public CreateEntitiesCommandHandler(
     ITransactionService <TContext> transactionService,
     IEntityPropertyResolver <TContext> propertyResolver,
     IEntityCommandsHelper <TContext> commandsHelper)
 {
     _transactionService = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _propertyResolver   = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver));
     _commandsHelper     = commandsHelper ?? throw new ArgumentNullException(nameof(commandsHelper));
 }
Exemple #4
0
 public EntityCommands(
     IMediator mediator,
     IEntityPropertyResolver <TContext> propertyResolver,
     ITransactionService <TContext> transactionService,
     ICollectionService <TContext> collectionService,
     IEntityCommandsHelper <TContext> entityCommandsHelper
     )
 {
     _mediator             = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _propertyResolver     = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver));
     _transactionService   = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _collectionService    = collectionService ?? throw new ArgumentNullException(nameof(collectionService));
     _entityCommandsHelper = entityCommandsHelper ?? throw new ArgumentNullException(nameof(entityCommandsHelper));
 }