コード例 #1
0
        public CheeseBanitsa MakeCheeseBanitsa()
        {
            IEnumerable<string> ingredients = new List<string>{
                "eggs", "milk", "cheese", "butter"
            };

            CheeseBanitsa cheeseBanitsa = new CheeseBanitsa(ingredients, Name); // TODO Why can't use the abstraction Banitsa

            return cheeseBanitsa;
        }
コード例 #2
0
        public CheeseBanitsa MakeCheeseBanitsa()
        {
            IEnumerable<string> ingredients = new List<string>{
                "home made eggs", "genuine milk", "home made cheese", "home made butter"
            };

            CheeseBanitsa cheeseBanitsa = new CheeseBanitsa(ingredients, Name);

            return cheeseBanitsa;
        }