public DetailProductViewModel(IProductStorageService productService, ICartService cartService, IGlobalEventor globalEventor) { _productService = productService; _cartService = cartService; _globalEventor = globalEventor; _globalEventor.Subscribe <Events.CartChangeEvent>(CartChange); }
public CartService(IProductStorageService productService, IGlobalEventor eventor, ICartRepository cartRepository, ITaxService taxService, IShippingMethodsService shipmentService) { _eventor = eventor; _productService = productService; _cartRepository = cartRepository; _taxService = taxService; _shipmentService = shipmentService; }
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; }
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); } }
public ProductStorageController(IProductStorageService productStorageService) { _productStorageService = productStorageService; }
public StorageAppService() { this.storageService = this.registrationServices.Instance.Container.Resolve <IStorageService>(); this.productStorageService = this.registrationServices.Instance.Container.Resolve <IProductStorageService>(); }