Beispiel #1
0
 public ShoppingStore()
 {
     country        = "Local";
     shoppingCart   = new ShoppingCart();
     paymentCounter = new PaymentCounter(country);
     storeShelf     = new StoreShelf();
 }
        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);
            }
        }