示例#1
0
文件: Cashier.cs 项目: nnguyen82/TDD
 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;
 }
示例#4
0
 /// <summary>
 /// コンストラクタです。
 /// </summary>
 /// <param name="register">レジ画面表示インスタンス</param>
 public Sale(ICashRegister register)
 {
     _register = register;
 }
示例#5
0
        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;
 }
 public CashRegisterViewModel(ICashRegister cashRegister)
 {
     _cashRegister = cashRegister;
 }