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

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

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