Пример #1
0
        static void Main(string[] args)
        {
            Suite royal = new Suite(1, 50);
            Guest jack  = new Guest(337859034, "jack");

            Reception.CheckIn(jack);
            Reception.CheckOut(royal);
        }
Пример #2
0
        static void Main(string[] args)
        {
            Reception.Rooms[0] = new FamilyRoom(1, 0);
            Reception.Rooms[1] = new RoomForTwo(2, 0);
            Reception.Rooms[2] = new Suite(3, 0);
            Guest shaul = new Guest(1, "shaul");


            Reception.CheckIn(shaul);
        }
Пример #3
0
        static void Main(string[] args)
        {
            Reception.SetRooms();
            Guest guest = new Guest();

            guest.Id   = 1;
            guest.Name = "Roey";
            Room room = Reception.CheckIn(guest);

            room = (RoomForTwo)room;
            if (Reception.CheckIn(guest) != null)
            {
                Console.WriteLine("Your room number is " + room.RoomNumber + 1);
            }
            else
            {
                Console.WriteLine("Sorry, all the rooms are taken");
            }
            Reception.SendRoomService(room);
            Reception.CheckOut(room);
        }
Пример #4
0
        static void Main(string[] args)
        {
            Guest guest = new Guest(232323, "Sagi");

            Reception.CheckIn(guest);
        }
Пример #5
0
        static void Main(string[] args)
        {
            Guest guest = new Guest(123456, "Gary");

            Reception.CheckIn(guest);
        }