コード例 #1
0
ファイル: PizzaLoader.cs プロジェクト: Team-on/works
        static public void CreatePizzaFile()
        {
            Directory.CreateDirectory(pizzaFolder);

            SerializePizza("ТестоваПіца№1", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 300
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Sausage())
                {
                    MassGr = 500
                }
            },
                           1
                           );
            SerializePizza("NullPizza", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 0
                },
            },
                           1
                           );

            SerializePizza("АрМар", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Vetcina())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Becon())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Olives())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Paperoni())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Венеция", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Vetcina())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Salami())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Becon())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.BolgarPapper())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
            },
                           5
                           );
            SerializePizza("Папперони", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Olives())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Oregano())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Paperoni())
                {
                    MassGr = 10
                }
            },
                           5
                           );
            SerializePizza("Морская", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Crab())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.SeeFood())
                {
                    MassGr = 100
                },
            },
                           5
                           );


            SerializePizza("Рико", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Pineapple())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Сырная", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Mozzarela())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Parmezan())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Грибной люкс", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Княжеская", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Фокача", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
            },
                           5
                           );
        }