public NotifyController(IOrderHousePaymentService iOrderHousePaymentService,
                         IPreferencesService iPreferencesService,
                         IOrderPaidService iOrderPaidService)
 {
     this.iOrderHousePaymentService = iOrderHousePaymentService;
     this.iPreferencesService       = iPreferencesService;
     this.iOrderPaidService         = iOrderPaidService;
     logger = LogManager.GetCurrentClassLogger();
 }
 public OrderPaidController(IOrderPaidService iOrderPaidService,
                            IEmployeeService iEmployeeService,
                            IMerchantService iMerchantService,
                            IProjectService iProjectService)
 {
     this.iOrderPaidService = iOrderPaidService;
     this.iMerchantService  = iMerchantService;
     this.iEmployeeService  = iEmployeeService;
     this.iProjectService   = iProjectService;
 }
 public TestNotifyController(IAccountPingAnService iAccountPingAnService,
                             IOrderPaidService iOrderPaidService,
                             IMemberService iMemberService,
                             IPingAnOrderPaidService iPingAnOrderPaidService,
                             IPreferencesService iPreferencesService,
                             IPingAnOrderPaidRechargeService iPingAnOrderPaidRechargeService)
 {
     this.iAccountPingAnService           = iAccountPingAnService;
     this.iOrderPaidService               = iOrderPaidService;
     this.iMemberService                  = iMemberService;
     this.iPingAnOrderPaidService         = iPingAnOrderPaidService;
     this.iPreferencesService             = iPreferencesService;
     this.iPingAnOrderPaidRechargeService = iPingAnOrderPaidRechargeService;
 }
Example #4
0
 public TestController(IMemberService iMemberManagementService,
                       IOrderBookingService iOrderBookingService,
                       IOrderHousePaymentService iOrderHousePaymentService,
                       IOrderPaidService iOrderPaidService,
                       IAreaGuangDaService iAreaGuangDaService,
                       IPingAnAPIService ipingAnAPIService)
 {
     this.iMemberManagementService  = iMemberManagementService;
     this.iOrderBookingService      = iOrderBookingService;
     this.iOrderHousePaymentService = iOrderHousePaymentService;
     this.iOrderPaidService         = iOrderPaidService;
     this.iAreaGuangDaService       = iAreaGuangDaService;
     this.ipingAnAPIService         = ipingAnAPIService;
 }
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ProductionsContext productionsContext,
                              INewOrderService newOrderService, IOrderPaidService orderPaidService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMvc();

            app.UseSwagger();

            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("/swagger/v1/swagger.json", "GeekBurger Production API V1");
            });

            productionsContext.Seed();

            newOrderService.SubscribeToTopic("NewOrder");
            orderPaidService.SubscribeToTopic("OrderChanged");
        }
Example #6
0
 public OrdersRepository(OrdersContext context, IOrderPaidService orderPaidService)
 {
     _context          = context;
     _orderPaidService = orderPaidService;
 }