コード例 #1
0
ファイル: MakePurchaseSlave.cs プロジェクト: maorRoz/Sadna
 public MakePurchaseSlave(IUserBuyer buyer, IStoresSyncher storesSync, IOrderDL orderDL, IPublisher publisher, IPolicyChecker checker)
 {
     _buyer          = buyer;
     _storesSync     = storesSync;
     _supplyService  = SupplyService.Instance;
     _paymentService = PaymentService.Instance;
     _orderDL        = orderDL;
     _publisher      = publisher;
     _checker        = checker;
 }
コード例 #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());
        }
コード例 #3
0
ファイル: LotteryTicketSlave.cs プロジェクト: maorRoz/Sadna
 public LotteryTicketSlave(IUserBuyer buyer, IStoresSyncher storesSync, IOrderDL orderDL, IPublisher publisher, IPolicyChecker checker) :
     base(buyer, storesSync, orderDL, publisher, checker)
 {
 }
コード例 #4
0
 public PurchaseItemSlave(IUserBuyer buyer, IStoresSyncher storesSync, IOrderDL orderDL, IPublisher publisher, IPolicyChecker checker) :
     base(buyer, storesSync, orderDL, publisher, checker)
 {
 }