public void SetUp()
 {
     _repository = new Mock<IOrderRepository>();
     _business = new OrderBusiness(_repository.Object);
     _userId = 1;
     _listaIdProdutos = new List<int> { 1, 2 };
     _idFormaDePagamento = 1;
     _pedido = new Order {OrderValue = 100.0M, FreightValue = 10.0M, TotalValue = 110.0M};
 }
Esempio n. 2
0
 public OrderController(IOrderBusiness orderBusiness,
                        ILocationService locationService,
                        IOrderServiceBusiness orderServiceBusiness,
                        IPromoOfferBusiness promoOfferBusiness,
                        IOrderRepository orderRepository,
                        IDeviceStatusBusiness deviceStatusBusiness)
 {
     _orderBusiness        = orderBusiness;
     _orderServiceBusiness = orderServiceBusiness;
     _locationService      = locationService;
     _promoOfferBusiness   = promoOfferBusiness;
     _tokenGenerator       = new TokenGenerator();
     _orderRepository      = orderRepository;
     _deviceStatusBusiness = deviceStatusBusiness;
 }
 public OrderAdminController(IOrderBusiness orderBusiness,
                             ISettingBusiness settingBusiness,
                             IAddressBusiness addressBusiness,
                             IPaymentGatewayBusiness paymentGatewayBusiness,
                             IOfficeAddressBusiness officeAddressBusiness,
                             Lazy <IPricingItemBusiness> pricingItemBusiness,
                             Lazy <IOrderDetailBusiness> orderDetailBusiness,
                             Lazy <ITransactionBusiness> transactionBusiness)
 {
     _transactionBusiness    = transactionBusiness;
     _settingBusiness        = settingBusiness;
     _orderBusiness          = orderBusiness;
     _addressBusiness        = addressBusiness;
     _pricingItemBusiness    = pricingItemBusiness;
     _officeAddressBusiness  = officeAddressBusiness;
     _orderDetailBusiness    = orderDetailBusiness;
     _paymentGatewayBusiness = paymentGatewayBusiness;
 }
Esempio n. 4
0
 public OrderController(IOrderBusiness orderBusiness,
                        IPaymentGatewayBusiness paymentGatewayBusiness,
                        IOfficeAddressBusiness officeAdressBusiness,
                        ISettingBusiness settingBusiness,
                        IAddressBusiness addressBusiness,
                        IUserBusiness userBusiness,
                        Lazy <IPricingItemBusiness> pricingItemBusiness,
                        Lazy <IShortLinkBusiness> shortLinkBusiness,
                        Lazy <ITransactionBusiness> transBusiness) : base(userBusiness)
 {
     _paymentGatewayBusiness = paymentGatewayBusiness;
     _officeAdressBusiness   = officeAdressBusiness;
     _orderBusiness          = orderBusiness;
     _addressBusiness        = addressBusiness;
     _settingBusiness        = settingBusiness;
     _pricingItemBusiness    = pricingItemBusiness;
     _shortLinkBusiness      = shortLinkBusiness;
     _transBusiness          = transBusiness;
     _userBusiness           = userBusiness;
 }
 public HomeController(IUserBusiness userSrv,
                       IOrderBusiness orderSrv,
                       IAttachmentBusiness attachmentSrv,
                       IUserBusiness userBusiness,
                       IPaymentGatewayBusiness paymentGatewayBusiness,
                       IOrderBusiness orderBusiness,
                       IAddressBusiness addressBusiness,
                       Lazy <IUserInRoleBusiness> userInRoleBusiness,
                       Lazy <ITransactionBusiness> transBusiness,
                       Lazy <IPricingItemBusiness> pricingItemBusiness) : base(userSrv)
 {
     _userSrv                = userSrv;
     _orderSrv               = orderSrv;
     _attachmentSrv          = attachmentSrv;
     _userBusiness           = userBusiness;
     _paymentGatewayBusiness = paymentGatewayBusiness;
     _orderBusiness          = orderBusiness;
     _addressBusiness        = addressBusiness;
     _userInRoleBusiness     = userInRoleBusiness;
     _transBusiness          = transBusiness;
     _pricingItemBusiness    = pricingItemBusiness;
 }
 public OrderController(IOrderBusiness orderBusiness)
 {
     this._orderBusiness = orderBusiness;
 }
Esempio n. 7
0
 public MemberController(IMemberBusiness memberBusiness, IMemberReceiptInfoBusiness memberReceiptInfo, IOrderBusiness orderBusiness)
 {
     this._memberBusiness    = memberBusiness;
     this._memberReceiptInfo = memberReceiptInfo;
     this._orderBusiness     = orderBusiness;
 }
Esempio n. 8
0
 public OrderController(IOrderBusiness _orderBusiness)
 {
     orderBusiness = _orderBusiness;
 }
 public OrderController(IOrderBusiness OrderBusiness)
 {
     _OrderBusiness = OrderBusiness;
 }
 public CarrinhoDeComprasController(IOrderBusiness orderBusiness)
 {
     _business = orderBusiness;
 }
Esempio n. 11
0
 public OrderAppService(IOrderBusiness orderBusiness, IMapper mapper)
 {
     _orderBusiness = orderBusiness;
     _mapper        = mapper;
 }
Esempio n. 12
0
 /// <summary>
 /// 订单处理
 /// </summary>
 public OrderController(IOrderBusiness orderBusiness, IOrderLimitCached orderLimitCached)
 {
     this.orderBusiness    = orderBusiness;
     this.orderLimitCached = orderLimitCached;
 }
Esempio n. 13
0
 public OrderService(IOrderBusiness OrderBiz, IJpushLogBusiness JpushLogBiz)//
 {
     _OrderBiz    = OrderBiz;
     _JpushLogBiz = JpushLogBiz;
 }
 public FacadeService(IOrderBusiness orderBusiness)
 {
     _orderBusiness = orderBusiness;
 }
 public OrderController(IMapper mapper, IOrderBusiness orderBusiness)
 {
     _orderBusiness = orderBusiness;
     _mapper        = mapper;
 }
Esempio n. 16
0
 public Order_BranchController(IOrderBusiness IOrderBus, IUnitOfWork unitOW)
 {
     _IOrderBus = IOrderBus;
     _unitOW    = unitOW;
 }
Esempio n. 17
0
 public OrdersController(IOrderBusiness orderBusiness)
 {
     _orderBusiness = orderBusiness;
 }
Esempio n. 18
0
 public OrderController(IOrderBusiness orderBusiness)
 {
     order = orderBusiness;
 }
Esempio n. 19
0
 public OrderController(IOrderBusiness order)
 {
     _orderBusiness = order;
 }
Esempio n. 20
0
 public OrderController()
 {
     orderBusiness = OrderBusinessFactory.Create();
 }
Esempio n. 21
0
 public OrderBusiness(IOrderBusiness Ib)
 {
     _Ib = Ib;
 }
Esempio n. 22
0
 public OrderController(IOrderBusiness orderBusiness, IOrderDetailBusiness orderDetailBusiness)
 {
     this._orderBusiness       = orderBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
 }
Esempio n. 23
0
 public MemberController(IMemberBusiness memberBusiness, IOrderBusiness orderBusiness)
 {
     this._memberBusiness = memberBusiness;
     this._orderBusiness  = orderBusiness;
 }
 public OrdersController(IOrderBusiness OrderBusiness, IEcardBusiness EcardBusiness)
 {
     this.OrderBusiness = OrderBusiness;
     this.EcardBusiness = EcardBusiness;
 }
Esempio n. 25
0
 // GET: Dashboard
 public DashboardController(IOrderBusiness orderBusiness, IOrderDetailBusiness orderDetailBusiness)
 {
     this._orderBusiness       = orderBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
 }
Esempio n. 26
0
 public CustomerController(ICustomerBusiness customerBusiness, ICommonBusiness commonBusiness, IOrderBusiness orderBusiness, ICart_WishlistBusiness cart_WishlistBusiness, IMasterBusiness masterBusiness)
 {
     _commonBusiness        = commonBusiness;
     _customerBusiness      = customerBusiness;
     _orderBusiness         = orderBusiness;
     _cart_WishlistBusiness = cart_WishlistBusiness;
     _masterBusiness        = masterBusiness;
 }
Esempio n. 27
0
 public CartController(ICartBusiness _cartBusiness, UserManager <User> _userManager, IOrderBusiness _orderBusiness)
 {
     cartBusiness  = _cartBusiness;
     userManager   = _userManager;
     orderBusiness = _orderBusiness;
 }
Esempio n. 28
0
 public DashBoardController(IMasterBusiness masterBusiness, IOrderBusiness orderBusiness, IProductBusiness productBusiness)
 {
     _masterBusiness  = masterBusiness;
     _orderBusiness   = orderBusiness;
     _productBusiness = productBusiness;
 }
Esempio n. 29
0
 public ZFBPayService(IOrderBusiness OrderBusinessBiz)
 {
     _OrderBusinessBiz = OrderBusinessBiz;
 }
Esempio n. 30
0
 public OrderChannelController(IOrderBusiness IOrderBus, IUnitOfWork unitOW)
 {
     _IOrderBus = IOrderBus;
     _unitOW    = unitOW;
 }
Esempio n. 31
0
 public TourController(ITourBusiness tourBusiness, IStepBusiness stepBusiness, IOrderBusiness orderBusiness, IMemberBusiness memberBusiness, IPromotionBusiness promotionBusiness, IOrderDetailBusiness orderDetailBusiness)
 {
     this._tourBusiness        = tourBusiness;
     this._stepBusiness        = stepBusiness;
     this._orderBusiness       = orderBusiness;
     this._memberBusiness      = memberBusiness;
     this._promotionBusiness   = promotionBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
 }
Esempio n. 32
0
 public CustomerController(ICustomerBusiness customerBusiness, IMasterBusiness masterBusiness, ICommonBusiness commonBusiness, IEventBusiness eventBusiness, ICart_WishlistBusiness cartwishlistBusiness, IOrderBusiness orderBusiness, IQuotationsBusiness quotationBusiness, IBookingsBusiness bookingsBusiness)
 {
     _customerBusiness     = customerBusiness;
     _commonBusiness       = commonBusiness;
     _eventBusiness        = eventBusiness;
     _masterBusiness       = masterBusiness;
     _cartwishlistBusiness = cartwishlistBusiness;
     _orderBusiness        = orderBusiness;
     _quotationBusiness    = quotationBusiness;
     _bookingsBusiness     = bookingsBusiness;
 }