public RestaurantSearchViewModel(IRestaurantDataService restaurantDataService, INavigationService navigationService, IDialogService dialogService, ISettingsService settingsService) : base(navigationService, dialogService, settingsService) { _restaurantDataService = restaurantDataService; Restaurants = new ObservableRangeCollection <RestaurantListDto>(); }
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); } }
public HomeController(IRestaurantDataService restaurantDataService, IGreeter greeter) { this.restaurantDataService = restaurantDataService; this.greeter = greeter; }