public RemoveStocksCommandHandler(IInventoryDbContextFactory dbContextFactory, IRemoveStocksCommandValidator requestValidator)
 {
     this.dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
     this.requestValidator = requestValidator ?? throw new ArgumentNullException(nameof(requestValidator));
 }
Exemple #2
0
 public GetProductByIdRequestHandler(IInventoryDbContextFactory dbContextFactory)
 {
     this.dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
 }
 public CreateProductCommandHandler(IInventoryDbContextFactory dbContextFactory, IValidator <CreateProductCommand> requestValidator)
 {
     this.dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
     this.requestValidator = requestValidator ?? throw new ArgumentNullException(nameof(requestValidator));
 }
Exemple #4
0
 public BringbackItemsCommandHandler(IInventoryDbContextFactory dbContextFactory, IValidator <BringbackItemsCommand> requestValidator)
 {
     this.dbContextFactory = dbContextFactory ?? throw new ArgumentNullException(nameof(dbContextFactory));
     this.requestValidator = requestValidator ?? throw new ArgumentNullException(nameof(requestValidator));
 }