Example #1
0
 public static DressingRooms DressingRoom(int numberRooms)
 {
     if (null == dressingRooms)
     {
         dressingRooms = new DressingRooms();
     }
     return(dressingRooms);
 }
Example #2
0
        public Customer(int ClothingItems, int numberOfRooms)
        {
            totalCustomers++;

            value = 1;
            rnd   = new Random();

            if (ClothingItems == 0 || ClothingItems > 20)
            {
                _ClothingItems = rnd.Next(1, 20);
            }

            else if ((ClothingItems > 0) && (ClothingItems <= 20))
            {
                _ClothingItems = ClothingItems;
            }

            if (null == _dressingRoom)
            {
                _dressingRoom = DressingRooms.DressingRoom(numberOfRooms);
            }
        }