Ejemplo n.º 1
0
        public void TestUpdateIngredient()
        {
            // arrange
            Ingredients updatedIngredient = new Ingredients();

            updatedIngredient.Item     = "Water";
            updatedIngredient.Quantity = 2;
            testSingleIngredient.Units = Ingredients.UnitTypes.tbsp;

            // act
            TestMenuRepo.AddMenuItem(menuTest);
            bool result = TestMenuRepo.UpdateMenuItemIngredients("Donut", "Flour", updatedIngredient);

            Assert.IsTrue(result);
        }