Beispiel #1
0
 public AccountController(IUserAppService userAppService, IIntegralAppService integralAppService, IHostingEnvironment env)
 {
     _userAppService   = userAppService;
     _appConfiguration = AppConfigurations.Get(env.ContentRootPath, env.EnvironmentName);
     _integralService  = integralAppService;
     _env = env;
 }
Beispiel #2
0
 public CartAppService(IRepository <Mall_Cart> cartRepository,
                       IRepository <Mall_CartItem> cartItemRepository,
                       IRepository <Mall_Product> productRepository,
                       IRepository <Mall_Order> orderRepository,
                       IRepository <Mall_Account, long> accountRepository,
                       IIntegralAppService integralAppService,
                       IRepository <Mall_OrderRecord> orderRecordRepository)
 {
     _cartRepository        = cartRepository;
     _cartItemRepository    = cartItemRepository;
     _productRepository     = productRepository;
     _orderRepository       = orderRepository;
     _accountRepository     = accountRepository;
     _integralAppService    = integralAppService;
     _orderRecordRepository = orderRecordRepository;
 }
Beispiel #3
0
 public OrderAppService(IRepository <Mall_Order> orderRepository,
                        IRepository <Mall_Integral> integralRepository,
                        INotificationPublisher notificationPublisher,
                        IRepository <Mall_Product> productRepository,
                        IRepository <Mall_CartItem> cartItemRepository,
                        IRepository <Mall_OrderRecord> orderRecordRepository,
                        IIntegralAppService integralAppService,
                        IEmailSender emailSender,
                        IUserAppService userAppService, IOrderManager orderManager)
 {
     _orderRepository       = orderRepository;
     _integralRepository    = integralRepository;
     _productService        = productRepository;
     _cartItemRepository    = cartItemRepository;
     _orderRecordRepository = orderRecordRepository;
     _integralAppService    = integralAppService;
     _orderManager          = orderManager;
 }