static void Main(string[] args) { ShoppingStore shopping = new ShoppingStore(); shopping.GetSalesOrder(); shopping.CheckOutAndPrintReceipt(); }
static void Main(string[] args) { // input for basket 1 ShoppingStore basket1 = new ShoppingStore(); basket1.GetSalesOrder(1); Console.WriteLine("***********OUTPUT********"); basket1.CheckOut(); Console.WriteLine("************************"); // input for basket 2 ShoppingStore basket2 = new ShoppingStore(); basket2.GetSalesOrder(2); Console.WriteLine("***********OUTPUT********"); basket2.CheckOut(); Console.WriteLine("************************"); // input for basket 3 ShoppingStore basket3 = new ShoppingStore(); basket3.GetSalesOrder(3); Console.WriteLine("***********OUTPUT********"); basket3.CheckOut(); Console.WriteLine("************************"); Console.ReadKey(); }
static void Main(string[] args) { ShoppingStore store = new ShoppingStore(); store.GetSalesOrder(); Console.ReadKey(); }
public virtual void Init() { _calculator = new TotalTaxCalculator(); //Vanilla set up _product = new Product() { Category = ProductType.OTHER, Name = ".NET BOOK", IsImported = false, Price = 100.0m }; _basketItem = new BasketItem() { Product = _product, Quantity = 1 }; _basket = new Basket() { CartItems = new List <BasketItem>() }; _basket.CartItems.Add(_basketItem); _store = new ShoppingStore(); }