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(); }
public CachedRestaurantsFilter(IRestaurantsFilter restaurantsFilter) { _restaurantsFilter = restaurantsFilter; _cachedRestaurants = new ConcurrentDictionary <Key, Restaurant[]>(); _cachedKeys = new ConcurrentDictionary <Restaurant, ConcurrentStack <Key> >(); }
public ClientLogic(IRestaurantsFilter restaurantsFilter) { _restaurantsFilter = restaurantsFilter; }