static void Main(string[] args) { Suite royal = new Suite(1, 50); Guest jack = new Guest(337859034, "jack"); Reception.CheckIn(jack); Reception.CheckOut(royal); }
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); }
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); }
static void Main(string[] args) { Guest guest = new Guest(232323, "Sagi"); Reception.CheckIn(guest); }
static void Main(string[] args) { Guest guest = new Guest(123456, "Gary"); Reception.CheckIn(guest); }