Beispiel #1
0
 public PutOrderPlacedHandler(MicroserviceDbContext dbContext, IOrderPlacedEventPublisher orderPlacedEventPublisher)
 {
     _dbContext = dbContext;
     _orderPlacedEventPublisher = orderPlacedEventPublisher;
 }
 public CreateOrderHandler(MicroserviceDbContext dbContext, IOrderCreatedEventPublisher createdEventPublisher)
 {
     _dbContext = dbContext;
     _createdEventPublisher = createdEventPublisher;
 }
Beispiel #3
0
 public CreateOrderHandler(MicroserviceDbContext dbContext, IMediator mediator) : base(dbContext, mediator)
 {
 }
Beispiel #4
0
 public PatchOrderHandler(MicroserviceDbContext dbContext, IOrderPatchedEventPublisher updatedEventPublisher)
 {
     _dbContext             = dbContext;
     _updatedEventPublisher = updatedEventPublisher;
 }
Beispiel #5
0
 public GetOrderByIdHandler(MicroserviceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #6
0
 public BaseHandler(MicroserviceDbContext dbContext, IMediator mediator)
 {
     Mediator   = mediator;
     _dbContext = dbContext;
 }
Beispiel #7
0
 public GetAllOrdersHandler(MicroserviceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public PatchOrderHandler(MicroserviceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public static void Clear(this MicroserviceDbContext db)
 {
     db.Orders.Clear();
     db.SaveChanges();
 }
 public GetAllOrdersHandler(MicroserviceDbContext dbContext, IMediator mediator) : base(dbContext, mediator)
 {
 }
Beispiel #11
0
 public CreateOrderHandler(MicroserviceDbContext dbContext)
 {
     _dbContext = dbContext;
 }