Exemple #1
0
 public OrderManager(IOrderDal orderDal, IOrderedProductDal orderedProductDal, IMailService emailService, IUserDal userDal)
 {
     _orderDal          = orderDal;
     _orderedProductDal = orderedProductDal;
     _emailService      = emailService;
     _userDal           = userDal;
 }
Exemple #2
0
 public OrderService(IOrderDal orderDal, ICarDal carDal, IUserDal userDal)
 {
     _orderDal = orderDal;
     _carDal   = carDal;
     _userDal  = userDal;
     //_orderDal = new OrderDal();
 }
 public OrderManager(IOrderDal orderDal, IOrderDetailService orderDetailService, IProductService productService, IUserService userService)
 {
     _orderDal           = orderDal;
     _orderDetailService = orderDetailService;
     _productService     = productService;
     _userService        = userService;
 }
 public ShoppingController()
 {
     _orderDetailDal = InstanceFactory.GetInstance <IOrderDetailDal>();
     _menuDal        = InstanceFactory.GetInstance <IMenuDal>();
     _userDal        = InstanceFactory.GetInstance <IUserDal>();
     _orderDal       = InstanceFactory.GetInstance <IOrderDal>();
     _addressDal     = InstanceFactory.GetInstance <IAddressDal>();
     _reviewDal      = InstanceFactory.GetInstance <IReviewDal>();
 }
Exemple #5
0
        public static OrderManager CreateSingleton(IOrderDal orderDal)
        {
            if (_orderManager == null)
            {
                _orderManager = new OrderManager(orderDal);
            }

            return(_orderManager);
        }
Exemple #6
0
 public ServiceController()
 {
     _userDal        = InstanceFactory.GetInstance <IUserDal>();
     _menuDal        = InstanceFactory.GetInstance <IMenuDal>();
     _orderDal       = InstanceFactory.GetInstance <IOrderDal>();
     _orderDetailDal = InstanceFactory.GetInstance <IOrderDetailDal>();
     _reviewDal      = InstanceFactory.GetInstance <IReviewDal>();
     _addressDal     = InstanceFactory.GetInstance <IAddressDal>();
     _branchDal      = InstanceFactory.GetInstance <IBranchDal>();
 }
 public OrderBo(IOrderDal orderDal, IOrderDetailDal orderDetailDal, IOrderHistoryBo orderHistoryBo, IThirdPartyLogBo thirdPartyLogBo, IDistrictBoCached districtBoCached, IWardBoCached wardBoCached, IUserService userService, INotifyService notifyService)
 {
     this._orderDal         = orderDal;
     this._orderDetailDal   = orderDetailDal;
     this._orderHistoryBo   = orderHistoryBo;
     this._thirdPartyLogBo  = thirdPartyLogBo;
     this._districtBoCached = districtBoCached;
     this._wardBoCached     = wardBoCached;
     this._userService      = userService;
     this._notifyService    = notifyService;
 }
        public static IResult CheckOrderLimit(IOrderDal orderDal, Order order)
        {
            var result = orderDal.GetAll(o => o.CustomerId == order.CustomerId && o.dateTime == order.dateTime).Count;



            if (result ! > 10)
            {
                return(new SuccessResult());
            }

            return(new ErrorResult(Messages.OrderLimit));
        }
Exemple #9
0
 public OrderBll(IOrderRepository repostory,IOrderDal dal)
 {
     _repostory = repostory;
     _dal = dal;
 }
Exemple #10
0
        //private IOrdersRefDal dalref;

        public OrdersManager(IOrderDal dalorder)
        {
            this.dalorder = dalorder;
            //this.dalref = dalref;
        }
 public OrderRepository()
 {
     accessDal = new MockOrderDal();
 }
Exemple #12
0
 public OrderManager(IOrderDal orderDal, IOrderDetailDal detailDal, IOrderDetailService orderDetailService)
 {
     _orderDal           = orderDal;
     _detailDal          = detailDal;
     _orderDetailService = orderDetailService;
 }
Exemple #13
0
 public OrderManager(IOrderDal orderDal, IPaymentService paymentService, IMapper mapper)
 {
     _orderDal       = orderDal;
     _paymentService = paymentService;
     _mapper         = mapper;
 }
Exemple #14
0
 public OrderBLL(IOrderDal orderDal)
 {
     _orderDal = orderDal;
 }
Exemple #15
0
 public Order(IOrderDal orderDal)
 {
     this._orderDal = orderDal;
 }
Exemple #16
0
 public OrderManager(IBaseDal <Order> baseDal, IOrderDal orderDal) : base(baseDal)
 {
     _baseDal  = baseDal;
     _orderDal = orderDal;
 }
Exemple #17
0
 public OrderService(IOrderDal orderDal, ILogFactory logFactory) : base(orderDal, logFactory)
 {
     _orderDal = orderDal;
 }
 public OrderManager(IOrderDal orderDal, IAddressService addressService)
 {
     _orderDal       = orderDal;
     _addressService = addressService;
 }
Exemple #19
0
 public OrderManager(IOrderDal OrderDal)
 {
     _OrderDal = OrderDal;
 }
Exemple #20
0
 public OrderManager(IOrderDal orderDal)
 {
     _orderDal = orderDal;
 }
Exemple #21
0
 public OrderManager(IOrderDal _orderDal) => orderDal = _orderDal;
 public OrderAgent()
 {
     orderDal = new OrderDal();
 }
Exemple #23
0
 public OrderLogic(IOrderDal orderDal)
 {
     _orderDal = orderDal;
 }
Exemple #24
0
 public OrderManager(IOrderDal orderDal_)
 {
     this.orderDal_ = orderDal_;
 }
 public OrderService(IOrderDal orderDal)
 {
     _orderDal = orderDal;
 }
Exemple #26
0
 public OrderBll(IOrderDal orderDal)
 {
     _orderDal = orderDal;
 }
 public OrderManager(IOrderDal orderDal, ISkateboardDal skateboardDal, IColorDal colorDal)
 {
     _orderDal     = orderDal;
     _skateboarDal = skateboardDal;
     _colorDal     = colorDal;
 }
Exemple #28
0
 public OrderManager(IOrderDal orderDal, IOrderDetailDal orderDetailDal, IProductService productService)
 {
     _orderDal       = orderDal;
     _orderDetailDal = orderDetailDal;
     _productService = productService;
 }