public Cashier(ICashRegister cashRegister) { _saleRules.Add(new FiveDollarRule(cashRegister)); _saleRules.Add(new TenDollarRule(cashRegister)); _saleRules.Add(new TwentyDollarRule(cashRegister)); _saleRules.Add(new OtherDollarRule(cashRegister)); }
public CashRegisterController(ICashRegister cashRegister) { _cashRegister = cashRegister; }
public CashRegisterViewModel(ICashRegister cashRegister) { _cashRegister = cashRegister; }
/// <summary> /// コンストラクタです。 /// </summary> /// <param name="register">レジ画面表示インスタンス</param> public Sale(ICashRegister register) { _register = register; }
private OrderBookController CreateOrderBookController(IRepository <global::MaiDan.Ordering.Domain.Order> orderBook, IRepository <Dish> menu, IRepository <Table> room, ICashRegister cashRegister, ICalendar calendar) { var orderBookController = new OrderBookController(orderBook, menu, room, cashRegister, calendar); orderBookController.ControllerContext = new ControllerContext(); orderBookController.ControllerContext.HttpContext = new DefaultHttpContext(); return(orderBookController); }
public CashDeskSpecsDriver(IProductRepository repository, ICashRegister cashRegister) { _repository = repository; _cashRegister = cashRegister; }