public void CanUpdateVendingInFile()
        {
            IVendingItemsRepository          repo     = new VendingInFileRepository(filePath);
            Dictionary <string, VendingItem> products = repo.GetAll();

            products["A1"].Inventory = 5;

            repo.UpdateVending(products);
            var result = repo.GetAll();

            Assert.AreEqual(5, result["A1"].Inventory);
        }
        public void CanGetAllFromVendingInFile()
        {
            IVendingItemsRepository          repo     = new VendingInFileRepository(filePath);
            Dictionary <string, VendingItem> products = repo.GetAll();


            var result = products["A1"];

            Assert.AreEqual("Snickers", result.ItemName);

            Assert.AreEqual("A1", result.VendingPosition);

            Assert.AreEqual(2.00M, result.Price);

            Assert.AreEqual(10, result.Inventory);
        }