public Pretzel() { Name = "Крендель"; CreationDate = DateTime.Now; ControlFreshPeriod = DateTime.Now.AddMinutes(15); StorageLife = TimeSpan.FromSeconds(30 * 60); StartPrice = 100; PriceDescreaser = new HalfLifePriceDescreaser(this); }
public CreamBun() { PriceDescreaser = new SuperFastPriceDescreaser(this); Name = "Кремовое ПироженоЭ"; CreationDate = DateTime.Now; ControlFreshPeriod = DateTime.Now.AddMinutes(15); StorageLife = TimeSpan.FromSeconds(30 * 60); StartPrice = 100; }
public Croissant() { Name = "Круассан"; CreationDate = DateTime.Now; ControlFreshPeriod = DateTime.Now.AddMinutes(15); StorageLife = TimeSpan.FromSeconds(30 * 60); StartPrice = 100; PriceDescreaser = new NormalPriceDescreaser(this); }