Esempio n. 1
0
 public Hotel(Room[] rooms)
 {
     Rooms = rooms;
 }
Esempio n. 2
0
 public HotelTest()
 {
     //Init hotel rooms. Numbers 1-10 are suites, 11-50 are regular rooms
       for (int i = 0; i < 50; _rooms[i] = new Room { Number = i + 1, RoomType = i++ < 10 ? RoomType.Suite : RoomType.Regular }) { }
       _hotel = new Hotel(_rooms);
 }