Example #1
0
        public void RecipeStepGetInitialStepTest()
        {
            RecipeStepFactory factory = new RecipeStepFactory();
            InitialStep       step    = factory.GetInitialStep("Test Drink", "Old Fashioned") as InitialStep;

            Assert.IsNotNull(step);
        }
Example #2
0
        public void RecipeGetIgniteRecipeStepCallTest()
        {
            RecipeStepFactory factory        = new RecipeStepFactory();
            RecipeStepCall    recipeStepCall = factory.GetRecipeStepCall("Ignite");

            Assert.IsNotNull(recipeStepCall._step);
            Assert.IsTrue(recipeStepCall._step is IgniteStep);
            Assert.IsFalse(recipeStepCall is RecipeStepCall <Ingredient>);

            recipeStepCall = factory.GetRecipeStepCall <Ingredient>("Ignite", new Ingredient("TestIngredient", 1, IngredientUnit.Dash, "Test Ingredient"));
            Assert.IsNull(recipeStepCall._step);
        }