示例#1
0
 public DetailProductViewModel(IProductStorageService productService, ICartService cartService, IGlobalEventor globalEventor)
 {
     _productService = productService;
     _cartService    = cartService;
     _globalEventor  = globalEventor;
     _globalEventor.Subscribe <Events.CartChangeEvent>(CartChange);
 }
示例#2
0
 public CartService(IProductStorageService productService, IGlobalEventor eventor, ICartRepository cartRepository, ITaxService taxService, IShippingMethodsService shipmentService)
 {
     _eventor         = eventor;
     _productService  = productService;
     _cartRepository  = cartRepository;
     _taxService      = taxService;
     _shipmentService = shipmentService;
 }
示例#3
0
 public SyncService(IOrderService orderService, ISyncServerService serverSyncService, IProductStorageService productStorageService, IThemeStorageService themeStorageService, IShippingMethodsService shippingMethodsService, IPaymentMethodService paymentMethodsService)
 {
     _orderService           = orderService;
     _syncServerService      = serverSyncService;
     _productStorageService  = productStorageService;
     _themeStorageService    = themeStorageService;
     _shippingMethodsService = shippingMethodsService;
     _paymentMethodsService  = paymentMethodsService;
 }
示例#4
0
 public ViewController(IOrderService orderService, UserManager <User> userManager, IOrderProductService orderProductService, IProductService productService, IStorageService storageService, IProductStorageService productStorageService)
 {
     _orderService          = orderService;
     _userManager           = userManager;
     _orderProductService   = orderProductService;
     _productService        = productService;
     _storageService        = storageService;
     _productStorageService = productStorageService;
 }
 public ProductsGridViewModel(ISyncService syncService, IProductStorageService productService, ICartService cartService, IFilterService filterService, IGlobalEventor globalEventor)
 {
     _syncService            = syncService;
     _productsStorageService = productService;
     _cartService            = cartService;
     _filterService          = filterService;
     _globalEventor          = globalEventor;
     if (!SyncManager.SyncComplete && _productsStorageService.GetProductsCount() == 0)
     {
         RunSync();
     }
     else
     {
         GetProducts(0, _countProductPerPage);
         RunBackgroundAsync();
         _globalEventor.Subscribe <Events.SyncEvent>(SyncComplate);
     }
 }
示例#6
0
 public ProductStorageController(IProductStorageService productStorageService)
 {
     _productStorageService = productStorageService;
 }
示例#7
0
 public StorageAppService()
 {
     this.storageService        = this.registrationServices.Instance.Container.Resolve <IStorageService>();
     this.productStorageService = this.registrationServices.Instance.Container.Resolve <IProductStorageService>();
 }