public void Initialize() { _gift = new Gift("GiftFofSTEM", new List <ISweetness>()); Candy candy1 = new Candy("Сhupa Chups XXL 4D", 29, 0.65, 370, TypeOfCandy.Bars); Candy candy2 = new Candy("Аэрофлотские", 150, 64.3, 483, TypeOfCandy.Chocolate); Chocolate choco1 = new Chocolate("Спартак", 75, 48, 540, TypeOfChocolate.Dark); Chocolate choco2 = new Chocolate("Любимая Алёнка", 200, 51.5, 550, TypeOfChocolate.Milk); _gift.AddSweet(candy1); _gift.AddSweet(candy2); _gift.AddSweet(choco1); _gift.AddSweet(choco2); }
private void Initialize() { _gift = new Gift("GiftFofSTEM", new List <ISweetness>()); Candy Konfetka = new Candy("Барбариски", 10, 50, 100, TypeOfCandy.Caramel); Candy Konfetka1 = new Candy("Бешенная пчелка", 15, 60, 250, TypeOfCandy.Dgele); Candy Konfetka2 = new Candy("Ириска", 20, 75, 300, TypeOfCandy.Iric); Candy Konfetka3 = new Candy("Чупа-чупс", 30, 65, 150, TypeOfCandy.Caramel); Candy Konfetka4 = new Candy("Коровка", 25, 65, 220, TypeOfCandy.Milk); Candy Konfetka5 = new Candy("Грильяж", 20, 35, 350, TypeOfCandy.Grillage); Candy Konfetka6 = new Candy("Свежая капля", 13, 40, 70, TypeOfCandy.Milk); Chocolate chocolate = new Chocolate("Аленка", 100, 60, 540, TypeOfChocolate.Milk); _gift.AddSweet(Konfetka); _gift.AddSweet(Konfetka1); _gift.AddSweet(Konfetka2); _gift.AddSweet(Konfetka3); _gift.AddSweet(Konfetka4); _gift.AddSweet(Konfetka5); _gift.AddSweet(Konfetka6); _gift.AddSweet(chocolate); }