Esempio n. 1
0
 //only for Unit Tests of developer!!(not for integration or blackbox or real usage)
 public void LoginBuyer(string userName, string password)
 {
     ((UserBuyerHarmony)_buyer).LogInBuyer(userName, password);
     UserName    = _buyer.GetName();
     UserAddress = _buyer.GetAddress();
     CreditCard  = _buyer.GetCreditCard();
 }
Esempio n. 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());
        }