public void GetInventoryWillReturnListOfCurrentStock()
        {
            var expectedStock = new List <StockItem> {
                new StockItem(VendingStock.Candy, 0), new StockItem(VendingStock.Chips, 0), new StockItem(VendingStock.Pop, 0)
            };

            var totalStock = _stockRepo.GetInventory();

            CollectionAssert.AreEquivalent(expectedStock, totalStock);
        }
        public bool HasAvailableItem(VendingStock item)
        {
            var stock = _vendingStockRepository.GetInventory();

            return(stock.Single(x => x.Item == item).AvailableStock >= 1);
        }