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; }
public CommonStatisticsDashboardWidgetDataCreator(IOrderDataService orderDataService, IUserDataService userDataService, IAppRoleManager roleManager, IProductDataService productDataService) { _orderDataService = orderDataService; _userDataService = userDataService; _roleManager = roleManager; _productDataService = productDataService; }
public OrderService(IOrderDataService orderDataService, ICustomerService _customerService, IOrderFulfillmentService orderFulfillmentService) { _orderDataService = orderDataService; customerService = _customerService; _orderFulfillmentService = orderFulfillmentService; }
public void SetupTestFixture() { _orderDataService = Mock.Create <IOrderDataService>(); _customerService = Mock.Create <ICustomerService>(); _orderFulfillmentService = Mock.Create <IOrderFulfillmentService>(); _orderService = new OrderService(_orderDataService, _customerService, _orderFulfillmentService); }
public void SetupTestFixture() { _orderDataService = new Mock <IOrderDataService>().Object; _customerService = new Mock <ICustomerService>().Object; _orderFulfillmentService = new Mock <IOrderFulfillmentService>().Object; _orderService = new OrderService(_orderDataService, _customerService, _orderFulfillmentService); }
[OneTimeSetUp] // NUnit2 ~ [TestFixtureSetup] public void SetupOneTime() { _orderDataService = Mock.Create <IOrderDataService>(); _customerService = Mock.Create <ICustomerService>(); _customerService = Mock.Create <ICustomerService>(); _orderService = new OrderService(_orderDataService, _customerService); }
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); }
//constructor public OrderController(IOrderDataService orderDataService, IDataService <Address> addressDataService, UserManager <IdentityUser> userManagerService, IDataService <Customer> customerDataService) { _orderDataService = orderDataService; _userManager = userManagerService; _customerDataService = customerDataService; _addressDataService = addressDataService; }
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; }
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; }
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) }))); }
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; }
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; }
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; }
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()); }
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); }
public OrderService(IOrderDataService orderDataService) { _orderDataService = orderDataService; }
public ProductsExpiredReservations() { _unitOfWork = Container.GetInstance <IUnitOfWork>(); _orderDataService = Container.GetInstance <IOrderDataService>(); HostingEnvironment.RegisterObject(this); }
public OrderService(IOrderDataService orderDataService, ICustomerService customerService) { _orderDataService = orderDataService; _customerService = customerService; }
public OrderManager(IOrderDataService dataService, IValidationCommandFactory commandFactory) { this.dataService = dataService; validationCommands = commandFactory.CreateValidationCommands(); }
public OrderService(IOrderDataService dataService, IUserService userService, IGradeService gradeService) { this._dataService = dataService; this._userService = userService; this._gradeService = gradeService; }
public OrderItemService(IOrderDataService orderSQLService) { }