示例#1
0
        static void Main(string[] args)
        {
            string outCode = "SE19";

            if (0 < args.Length)
            {
                outCode = args[0];
            }
            if (string.IsNullOrEmpty(outCode))
            {
                outCode = "SE19";
            }
            var jeApi          = new JeApiClient();
            var restaurants    = jeApi.GetRestaurantsFor(outCode);
            var displayAdapter = new DisplayAdapter(new ConsoleDisplay());

            displayAdapter.Display(restaurants.Restaurants);
            Console.WriteLine();
            Console.WriteLine("PRESS ANY KEY TO EXIT");
            Console.ReadLine();
        }
示例#2
0
        public void Setup()
        {
            var jeApiClient = new JeApiClient();

            _restaurantData = jeApiClient.GetRestaurantsFor(APostCode);
        }