Ejemplo n.º 1
0
        private static void Main()
        {
            var repository  = new RandomRepository(1000, 1000, 1000);
            var restaurants = repository.GetRestaurants();
            var mapSize     = repository.GetMapSize();

            _map = new LineListMap(restaurants, mapSize);
            _map = new CachedMap(_map);
            _restaurantsFilter = new RestaurantsFilter(_map);
            _clientLogic       = new ClientLogic(_restaurantsFilter);

            MainMenu();

            Console.ReadLine();
        }
Ejemplo n.º 2
0
 public CachedRestaurantsFilter(IRestaurantsFilter restaurantsFilter)
 {
     _restaurantsFilter = restaurantsFilter;
     _cachedRestaurants = new ConcurrentDictionary <Key, Restaurant[]>();
     _cachedKeys        = new ConcurrentDictionary <Restaurant, ConcurrentStack <Key> >();
 }
Ejemplo n.º 3
0
 public ClientLogic(IRestaurantsFilter restaurantsFilter)
 {
     _restaurantsFilter = restaurantsFilter;
 }