Esempio n. 1
0
        public CashierDeskController(
            ILoggerFactory loggerFactory,
            IStoreCashRegisterService storeCashRegisterService,
            IStoreScalesService storeScaleService,
            IProductPriceService productPriceService,
            ICurrentPricesService currentPriceService,
            IStoreService storeService,
            IProductService productService,
            ICashierService cashierService,
            IProductCategoryService productCategoryService,
            ISubgroupService subgroupService
            )
        {
            _logger = loggerFactory.GetLogger(typeof(CashierDeskController));

            _storeCashRegisterService = storeCashRegisterService;
            _storeScaleService        = storeScaleService;
            _productPriceService      = productPriceService;
            _currentPriceService      = currentPriceService;
            _storeService             = storeService;
            _productService           = productService;
            _cashierService           = cashierService;
            _productCategoryService   = productCategoryService;
            _subgroupService          = subgroupService;
        }
Esempio n. 2
0
        public TestController()
        {
            var baseUrl    = ConfigurationManager.AppSettings[""];
            var merchantId = ConfigurationManager.AppSettings[""];
            var publicKey  = ConfigurationManager.AppSettings[""];

            _cashierService = new CashierService(baseUrl, merchantId, publicKey, "", TimeSpan.FromSeconds(5));
        }
Esempio n. 3
0
 public CashierServiceController(ICashierService service,
                                 IMessageQueueService messageQueueService,
                                 IOptions <ApplicationSettings> settings)
 {
     _settings     = settings;
     _service      = service;
     _messageQueue = messageQueueService;
 }
        public CashierServiceControllerTest()
        {
            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Directory.GetCurrentDirectory())
                                .AddJsonFile("appsettings.json", false)
                                .Build();

            _settings = Options.Create(configuration.GetSection("ApplicationSettings").Get <ApplicationSettings>());

            _service      = new CashierServiceFake(_settings);
            _messageQueue = new MessageQueueServiceFake();

            _controller = new CashierServiceController(_service, _messageQueue, _settings);
        }
Esempio n. 5
0
 public OverStoreController(
     ILoggerFactory loggerFactory,
     IDataUploadService dataUploadService,
     IParameterReader parameterReader,
     IUploadTypeService uploadTypeService,
     IStatusService statusService,
     //IPackageDetailService packageDetailService,
     IStoreCashRegisterService storeCashRegisterService,
     IStoreScalesService storeScaleService,
     IProductPriceService productPriceService,
     ICurrentPricesService currentPriceService,
     IStoreService storeService,
     IProductService productService,
     ICashierService cashierService,
     IStorageZonesService storageZonesService,
     IStockTakingScheduleService stockTakingScheduleService,
     IStockTakingService stockTakingService,
     IStoreOrderService storeOrderService
     )
 {
     _logger            = loggerFactory.GetLogger(typeof(OverStoreController));
     _dataUploadService = dataUploadService;
     _parameterReader   = parameterReader;
     _uploadTypeService = uploadTypeService;
     _statusService     = statusService;
     //_packageDetailService = packageDetailService;
     _storeCashRegisterService   = storeCashRegisterService;
     _storeScaleService          = storeScaleService;
     _productPriceService        = productPriceService;
     _currentPriceService        = currentPriceService;
     _storeService               = storeService;
     _productService             = productService;
     _cashierService             = cashierService;
     _storageZonesService        = storageZonesService;
     _stockTakingScheduleService = stockTakingScheduleService;
     _stockTakingService         = stockTakingService;
     _storeOrderService          = storeOrderService;
 }
Esempio n. 6
0
 public CustomerService(ICashierService cashierService)
 {
     _cashierService = cashierService;
 }
 public CashiersController(ICashierService cashierService)
 {
     _cashierService = cashierService;
 }
Esempio n. 8
0
 public TestController(ICashierService cashierService)
 {
     _cashierService = cashierService;
 }
Esempio n. 9
0
 public TestController(ICashierService cashierService, ITransferService transferService)
 {
     _cashierService  = cashierService;
     _transferService = transferService;
 }
Esempio n. 10
0
 public CashierHub(IOrderService orderService, ICashierService cashierService)
 {
     _orderService   = orderService;
     _cashierService = cashierService;
 }