Esempio n. 1
0
 public ShoppingStore()
 {
     country        = "Local";
     shoppingCart   = new ShoppingCart();
     paymentCounter = new PaymentCounter(country);
     storeShelf     = new StoreShelf();
 }
Esempio n. 2
0
        private void RetrieveOrderAndPlaceInCart(String name, double price, bool imported, int quantity)
        {
            StoreShelf storeShelf = new StoreShelf();
            Product    product    = storeShelf.SearchAndRetrieveItemFromShelf(name, price, imported, quantity);

            if (product != null)
            {
                shoppingCartObj.AddItemToCart(product);
            }
        }