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; }
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()); }
public LotteryTicketSlave(IUserBuyer buyer, IStoresSyncher storesSync, IOrderDL orderDL, IPublisher publisher, IPolicyChecker checker) : base(buyer, storesSync, orderDL, publisher, checker) { }
public PurchaseItemSlave(IUserBuyer buyer, IStoresSyncher storesSync, IOrderDL orderDL, IPublisher publisher, IPolicyChecker checker) : base(buyer, storesSync, orderDL, publisher, checker) { }