Example #1
0
        static void Main(string[] args)
        {
            Pants    BrownPants   = new Pants(500, 34, "Brown", "Gant", 5);
            Tshirt   BlueTshirt   = new Tshirt(400, 30, "Blue", "Ralph Lauren", 3);
            Shoes    BlackShoes   = new Shoes(500, 44, "Black", "Vans", 10);
            Sweaters WhiteSweater = new Sweaters(500, 40, "White", "Gant", 10);


            AllClothes StoreSelection = new AllClothes(BrownPants, BlueTshirt, BlackShoes, WhiteSweater);
            Wallet     wallet         = new Wallet(1200, "Kroner");
            Store      store          = new Store(StoreSelection, wallet);

            store.ShowAvailableStock();
            store.AddToCart("Brown Gant Pants");
            store.ShowCart();
            store.DeleteFromCart("Brown Gant Pants");
            store.ShowCart();
            store.AddToCart("Brown Gant Pants");
            store.BuyCart();
        }
Example #2
0
 public Store(AllClothes AllClothes, Wallet wallet)
 {
     _allClothes = AllClothes;
     Cart        = new List <Clothes>();
     _wallet     = new Wallet(wallet.Money, wallet.Currency);
 }