Exemple #1
0
        public Dictionary <string, VendingItem> GrabInfo()
        {
            VendingItem vend = new VendingItem();

            vend.Location  = "A1";
            vend.Name      = "Oreo's";
            vend.Inventory = 5;
            vend.Price     = 2.5M;

            Dictionary <string, VendingItem> vending = new Dictionary <string, VendingItem>();

            vending.Add(vend.Location, new VendingItem
            {
                Location  = "A1",
                Name      = "Oreo's",
                Price     = 2.5M,
                Inventory = 5
            });
            return(vending);

            //throw new NotImplementedException();
        }
Exemple #2
0
 public bool Update(VendingItem item)
 {
     throw new NotImplementedException();
 }