예제 #1
0
        public StoreOrderTools()
        {
            _orderDL        = OrderDL.Instance;
            _supplyService  = SupplyService.Instance;
            _paymentService = PaymentService.Instance;

            Orders = new List <Order>();
        }
예제 #2
0
        public OrderService(IUserBuyer buyer, IStoresSyncher storesSync)
        {
            Orders      = new List <Order>();
            _buyer      = buyer;
            UserName    = buyer.GetName();
            UserAddress = buyer.GetAddress();
            CreditCard  = buyer.GetCreditCard();
            _storesSync = storesSync;
            _orderDL    = OrderDL.Instance;

            ltSlave = new LotteryTicketSlave(_buyer, _storesSync, _orderDL, MarketYard.Instance.GetPublisher(), MarketYard.Instance.GetPolicyChecker());
        }