Exemplo n.º 1
0
 public RestaurantSearchViewModel(IRestaurantDataService restaurantDataService,
                                  INavigationService navigationService, IDialogService dialogService,
                                  ISettingsService settingsService) : base(navigationService, dialogService, settingsService)
 {
     _restaurantDataService = restaurantDataService;
     Restaurants            = new ObservableRangeCollection <RestaurantListDto>();
 }
Exemplo n.º 2
0
        public void Setup()
        {
            storagePath           = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            restaurantDataService = new RestaurantJsonService(storagePath);

            foreach (var filename in Directory.EnumerateFiles(storagePath, "*" + Constants.RESTAURANT_FILE_EXTENSION))
            {
                File.Delete(filename);
            }
        }
Exemplo n.º 3
0
 public HomeController(IRestaurantDataService restaurantDataService, IGreeter greeter)
 {
     this.restaurantDataService = restaurantDataService;
     this.greeter = greeter;
 }