Exemple #1
0
        public void TestDeactivateRecipeValidInput()
        {
            //Arrange
            Recipe recipe = _recipes[0];
            //Act
            bool result = _recipeManager.DeactivateRecipe(recipe.RecipeID);

            recipe = _recipeManager.RetrieveRecipeByID(recipe.RecipeID);
            //Assert
            Assert.IsTrue(result);
            Assert.IsFalse(recipe.Active);
        }