Exemplo n.º 1
0
        public void Seed()
        {
            Ingredient bread   = new Ingredient("bread");
            Ingredient filling = new Ingredient("filling");

            _CroissantIngredients.Add(bread);
            _CroissantIngredients.Add(filling);

            MenuItem chocolateCroissant    = new MenuItem(1, "Chocolate Croissant", "Croissant with chocolate filling", _CroissantIngredients, 2.99);
            MenuItem DulceDeLecheCroissant = new MenuItem(2, "Dulce de Leche Croissant", "Croissant with dulce de leche filling", _CroissantIngredients, 2.99);
            MenuItem RegularCroissant      = new MenuItem(3, "Croissant", "Regular Croissant", _CroissantIngredients, 2.55);


            _repo.AddItemToMenuList(chocolateCroissant);
            _repo.AddItemToMenuList(DulceDeLecheCroissant);
            _repo.AddItemToMenuList(RegularCroissant);
        }