Пример #1
0
 public OrderController()
 {
     orderDataService       = new OrderDataService();
     errorDataService       = new ErrorDataService();
     transactionDataService = new TransactionDataService();
     statusDataService      = new StatusDataService();
 }
 public WaveManagement(IOrderDataService orderDataService, IOptimizationEngine optimizationEngine,
                       ISupplierInventoryDataService supplierInventoryDataService)
 {
     this.orderDataService             = orderDataService;
     this.optimizationEngine           = optimizationEngine;
     this.supplierInventoryDataService = supplierInventoryDataService;
 }
Пример #3
0
 public CommonStatisticsDashboardWidgetDataCreator(IOrderDataService orderDataService, IUserDataService userDataService, IAppRoleManager roleManager, IProductDataService productDataService)
 {
     _orderDataService   = orderDataService;
     _userDataService    = userDataService;
     _roleManager        = roleManager;
     _productDataService = productDataService;
 }
Пример #4
0
 public OrderService(IOrderDataService orderDataService, ICustomerService _customerService,
                     IOrderFulfillmentService orderFulfillmentService)
 {
     _orderDataService        = orderDataService;
     customerService          = _customerService;
     _orderFulfillmentService = orderFulfillmentService;
 }
Пример #5
0
 public void SetupTestFixture()
 {
     _orderDataService        = Mock.Create <IOrderDataService>();
     _customerService         = Mock.Create <ICustomerService>();
     _orderFulfillmentService = Mock.Create <IOrderFulfillmentService>();
     _orderService            = new OrderService(_orderDataService, _customerService, _orderFulfillmentService);
 }
Пример #6
0
 public void SetupTestFixture()
 {
     _orderDataService        = new Mock <IOrderDataService>().Object;
     _customerService         = new Mock <ICustomerService>().Object;
     _orderFulfillmentService = new Mock <IOrderFulfillmentService>().Object;
     _orderService            = new OrderService(_orderDataService, _customerService, _orderFulfillmentService);
 }
Пример #7
0
 [OneTimeSetUp] // NUnit2 ~ [TestFixtureSetup]
 public void SetupOneTime()
 {
     _orderDataService = Mock.Create <IOrderDataService>();
     _customerService  = Mock.Create <ICustomerService>();
     _customerService  = Mock.Create <ICustomerService>();
     _orderService     = new OrderService(_orderDataService, _customerService);
 }
Пример #8
0
 public ShoppingCartViewModel(
     ICatalogDataService catalogDataService,
     IOrderDataService orderDataService
     )
 {
     _catalogDataService = catalogDataService;
     _orderDataService   = orderDataService;
 }
        // private Address _address;

        public CheckoutViewModel(IConnectionService connectionService,
                                 INavigationService navigationService, IDialogService dialogService,
                                 IOrderDataService orderDataService, ISettingsService settingsService)
            : base(connectionService, navigationService, dialogService)
        {
            _orderDataService = orderDataService;
            _settingsService  = settingsService;
        }
        public void Setup()
        {
            orderDataService = Mock.Create <IOrderDataService>();
            customerService  = Mock.Create <ICustomerService>();

            orderFulfillmentService = Mock.Create <IOrderFulfillmentService>();
            orderService            = new OrderService(orderDataService, customerService, orderFulfillmentService);
        }
 public CheckoutModelFactory(IWorkContext workContext, IUnitOfWork unitOfWork, IOrderDataService orderDataService, ICurrentUserService currentUserService, ISettingService settingService)
 {
     _workContext        = workContext;
     _unitOfWork         = unitOfWork;
     _orderDataService   = orderDataService;
     _currentUserService = currentUserService;
     _settingService     = settingService;
     _urlHelper          = new UrlHelper(HttpContext.Current.Request.RequestContext);
 }
Пример #12
0
 //constructor
 public OrderController(IOrderDataService orderDataService,
                        IDataService <Address> addressDataService,
                        UserManager <IdentityUser> userManagerService,
                        IDataService <Customer> customerDataService)
 {
     _orderDataService    = orderDataService;
     _userManager         = userManagerService;
     _customerDataService = customerDataService;
     _addressDataService  = addressDataService;
 }
Пример #13
0
 public OrderViewModel(INavigationService navigationService, IDialogService dialogService, IOrderDataService orderDataService, ISettingsService settingsService)
     : base(navigationService, dialogService, settingsService)
 {
     _settingsService  = settingsService;
     _orderDataService = orderDataService;
     if (_orderItems == null)
     {
         _orderItems = new ObservableCollection <OrderItem>();
     }
 }
 public OrderWebClientService(IWorkContext workContext, IDiscountWebClientService discountWebClientService,
                              ICurrentUserService currentUserService, IOrderDataService orderDataService, IUnitOfWork unitOfWork,
                              IEmailyService emailyService, IAppUserManager userManager, IOrderItemDataService orderItemDataService)
 {
     _workContext = workContext;
     _discountWebClientService = discountWebClientService;
     _currentUserService       = currentUserService;
     _orderDataService         = orderDataService;
     _unitOfWork           = unitOfWork;
     _userManager          = userManager;
     _orderItemDataService = orderItemDataService;
 }
 public OrderBusinessService(PersonnelEmailBusinessService personnelEmailBusinessService, ISellerBusinessService sellerBusinessService, IOrderDataService dataService, IEmailBusinessService emailBusinessService, ISmsBusinessService smsBusinessService, ISellerDataService sellerDataService, IPersonnelDataService personnelDataService, IMobileDataService mobileDataService, IMapper mapper)
 {
     _dataService                   = dataService;
     _emailBusinessService          = emailBusinessService;
     _smsBusinessService            = smsBusinessService;
     _sellerDataService             = sellerDataService;
     _personnelDataService          = personnelDataService;
     _mobileDataService             = mobileDataService;
     _sellerBusinessService         = sellerBusinessService;
     _personnelEmailBusinessService = personnelEmailBusinessService;
     _mapper = mapper;
 }
Пример #16
0
 public BagService(
     IDeletableEntityRepository <Bag> bagRepository,
     IDeletableEntityRepository <ProductQuantity> productQuantityRepository,
     IDeletableEntityRepository <ApplicationUser> userRepository,
     IDeletableEntityRepository <OrderData> orderDataRepository,
     IOrderDataService orderDataService)
 {
     this.bagRepository             = bagRepository;
     this.productQuantityRepository = productQuantityRepository;
     this.userRepository            = userRepository;
     this.orderDataRepository       = orderDataRepository;
     this.orderDataService          = orderDataService;
 }
 public CheckoutViewModel(
     ISettingsService settingsService,
     IDialogService dialogService,
     INavigationService navigationService,
     IConnectionService connectionService,
     IOrderDataService orderDataService)
 {
     _settingsService   = settingsService;
     _dialogService     = dialogService;
     _navigationService = navigationService;
     _connectionService = connectionService;
     _orderDataService  = orderDataService;
 }
Пример #18
0
        public async Task <IActionResult> Orders([FromServices] IOrderDataService orderDataService)
        {
            var orders = await orderDataService.GetUserOrders(User.Identity.Name);

            return(View(orders.Select(order => new UserOrderViewModel
            {
                Id = order.Id,
                Name = order.Name,
                Phone = order.Phone,
                Address = order.Address,
                TotalSum = order.Items.Sum(i => i.Price * i.Quantity)
            })));
        }
Пример #19
0
 public AdministrationController(
     IProductsService productsService,
     IImgService imgService,
     ICategoryService categoryService,
     IBagService bagService,
     IOrderDataService orderDataService,
     IDiscountsService discountsService)
 {
     this.productsService  = productsService;
     this.imgService       = imgService;
     this.categoryService  = categoryService;
     this.bagService       = bagService;
     this.orderDataService = orderDataService;
     this.discountsService = discountsService;
 }
Пример #20
0
        public XMLClient(ILogger <XMLClient> logger)
        {
            _logger = logger;

            _logger.LogInformation("Started logging in XMLClient");

            dataFactory = new XMLDataFactory();

            // we will have to switch this if not SqlServer
            ServiceProvider serviceProvider = MyServiceFactory.GetServiceProvider();

            _itemDataService    = serviceProvider.GetService <IItemDataService>();
            _messageDataService = serviceProvider.GetService <IMessageDataService>();
            _orderDataService   = serviceProvider.GetService <IOrderDataService>();
            _configuration      = serviceProvider.GetService <IConfiguration>();
        }
 public OrderBusinessEntity(IOrderDataService orderDataService,
                            IStandardInventoryBusinessEntity standardInventoryBusinessEntity,
                            IDeliverySlotsBusinessEntity deliverySlotBusinessEntity,
                            IUserBusinessEntity userBusinessEntity, IOptimizationEngine optimizationEngine,
                            ISupplierBaseService supplierBaseService,
                            ISupplierInventoryDataService supplierInventoryDataService,
                            IWaveManagement waveManagement)
 {
     this.orderDataService = orderDataService;
     this.standardInventoryBusinessEntity = standardInventoryBusinessEntity;
     this.deliverySlotBusinessEntity      = deliverySlotBusinessEntity;
     this.userBusinessEntity = userBusinessEntity;
     this.optimizationEngine = optimizationEngine;
     this.standardInventoryBusinessEntity = standardInventoryBusinessEntity;
     this.supplierBaseService             = supplierBaseService;
     this.supplierInventoryDataService    = supplierInventoryDataService;
     this.waveManagement = waveManagement;
 }
Пример #22
0
 public OrderService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics,
                     List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics,
                     List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics,
                     List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics,
                     List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics,
                     List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager,
                     IRestrictedItemAccessManager accessManager, IDataService <Order, Guid> dataSrv,
                     IOrderDataService orderDataService, ISecurityLogger securityLogger, IUnitOfWork unitOfWork, IOrderLogger orderLogger, IOrderLogDataService orderLogDataService, IIdentityManager identityManager1) : base(baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics,
                                                                                                                                                                                                                               baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics,
                                                                                                                                                                                                                               baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv)
 {
     _orderDataService    = orderDataService;
     _securityLogger      = securityLogger;
     _unitOfWork          = unitOfWork;
     _orderLogger         = orderLogger;
     _orderLogDataService = orderLogDataService;
     _identityManager     = identityManager1;
 }
Пример #23
0
 public CurrentUserService(IIdentityManager identityManager, IAppUserManager userManager, IUnitOfWork unitOfWork,
                           IFileManager fileManager, IDiscountDataService discountDataService, IWorkContext workContext,
                           IShoppingCartItemDataService shoppingCartItemDataService, IDiscountValidator discountValidator, ICouponCodeDataService couponCodeDataService, IOrderDataService orderDataService, IAddressDataService addressDataService)
 {
     _identityManager             = identityManager;
     _userManager                 = userManager;
     _unitOfWork                  = unitOfWork;
     _fileManager                 = fileManager;
     _discountDataService         = discountDataService;
     _workContext                 = workContext;
     _shoppingCartItemDataService = shoppingCartItemDataService;
     _discountValidator           = discountValidator;
     _couponCodeDataService       = couponCodeDataService;
     _orderDataService            = orderDataService;
     _addressDataService          = addressDataService;
     _userAttributes              = unitOfWork.Set <UserAttribute>();
     _currUserId                  = new Lazy <Guid>(() => _userManager.GetCurrentUserId());
 }
Пример #24
0
 public ProductWebClientService(IProductDataService productDataService,
                                IRestrictedItemAccessManager accessManager, IProductCategoryDataService productCategoryDataService,
                                IWorkContext workContext, IUnitOfWork unitOfWork, IProductReviewDataService productReviewDataService,
                                ISecurityLogger securityLogger, IOrderDataService orderDataService, ShoppingCartHelper shoppingCartHelper,
                                IDiscountWebClientService discountWebClientService, ITagDataService tagDataService,
                                ISettingService settingService, IIdentityManager identityManager,
                                IEntitySchemeDataService schemeDataService)
 {
     _productDataService         = productDataService;
     _accessManager              = accessManager;
     _productCategoryDataService = productCategoryDataService;
     _workContext = workContext;
     _unitOfWork  = unitOfWork;
     _productReviewDataService = productReviewDataService;
     _securityLogger           = securityLogger;
     _orderDataService         = orderDataService;
     _discountWebClientService = discountWebClientService;
     _tagDataService           = tagDataService;
     _settingService           = settingService;
     _identityManager          = identityManager;
     _schemeDataService        = schemeDataService;
     _currUserId = new Lazy <Guid>(_identityManager.GetCurrentIdentity().GetUserId().ToGuid);
 }
Пример #25
0
 public OrderService(IOrderDataService orderDataService)
 {
     _orderDataService = orderDataService;
 }
Пример #26
0
 public ProductsExpiredReservations()
 {
     _unitOfWork       = Container.GetInstance <IUnitOfWork>();
     _orderDataService = Container.GetInstance <IOrderDataService>();
     HostingEnvironment.RegisterObject(this);
 }
Пример #27
0
 public OrderService(IOrderDataService orderDataService, ICustomerService customerService)
 {
     _orderDataService = orderDataService;
     _customerService  = customerService;
 }
Пример #28
0
 public OrderManager(IOrderDataService dataService, IValidationCommandFactory commandFactory)
 {
     this.dataService   = dataService;
     validationCommands = commandFactory.CreateValidationCommands();
 }
Пример #29
0
 public OrderService(IOrderDataService dataService, IUserService userService, IGradeService gradeService)
 {
     this._dataService  = dataService;
     this._userService  = userService;
     this._gradeService = gradeService;
 }
Пример #30
0
 public OrderItemService(IOrderDataService orderSQLService)
 {
 }