示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Please enter the client type and the requested dates, respectively: ");
            string userInput = Console.ReadLine();

            HotelBestOptionSearcher operation = new HotelBestOptionSearcher();
            var result = operation.CalculateBestHotel(userInput);

            if (result == "Invalid")
            {
                Console.WriteLine("Invalid customer type.");
            }
            else
            {
                Console.WriteLine(result);
            }
        }
示例#2
0
 public void Setup()
 {
     _hotelSearcher = new HotelBestOptionSearcher();
 }