Beispiel #1
0
        public Store()
        {
            Message Event;
            int     RandSize = Randomaiser.RandomIntSize();

            for (int id = 0; id < RandSize; id++)
            {
                int RandType = Randomaiser.RandomTo3();
                if (RandType == 0)
                {
                    var temp = new AudioTehnick();
                    products.Add(temp);
                    Event = AudioMess;
                }
                if (RandType == 1)
                {
                    var temp = new VideoTehnick();
                    products.Add(temp);
                    Event = VideoMess;
                }
                else
                {
                    var temp = new Detail();
                    products.Add(temp);
                    Event = DetailMess;
                }
                Event();
            }
        }
Beispiel #2
0
 public Product()
 {
     Name     = Randomaiser.RandomName(this.GetType().Name);
     Brand    = Randomaiser.RandomBrand();
     Material = Randomaiser.RandomMaterial();
     Color    = Randomaiser.RandomColor();
     Price    = Randomaiser.RandomPrice();
     ID       = Randomaiser.ID();
 }