예제 #1
0
        private static void SetPredifinedData()
        {
            Predefined predefined = new Predefined();

            SaleItems     = new List <SaleItem>();
            ShoppingItems = predefined.GetAllItems();
            Coupons       = predefined.GetAllCoupons();
        }
예제 #2
0
        public CashRegister()
        {
            Predefined predefined = new Predefined();

            _saleItems      = new List <SaleItem>();
            _itemsInStore   = predefined.GetAllItems();
            _couponsInStore = predefined.GetAllCoupons();
            _total          = 0;
        }