public CleanserViewModel() { ShowOnlyNewResults = true; _repo = new SoldOutRepository(); _deleteSearchResultsCommand = new DelegateCommand<IList>( DeleteSelectedSearchResults ); _markAsCleansedCommand = new DelegateCommand<IList>( MarkSelectedSearchAsCleansed ); _windowClosingCommand = new DelegateCommand( () => { // Clean up the repo if (_repo != null) { _repo.Dispose(); _repo = null; } } ); Searches = GetSearches(); SelectedSearchOverview = _searches.First(); }
public ProductController() { _repository = new SoldOutRepository(); _statsRepository = new StatsRepository(); _priceHistoryService = new PriceHistoryService(_repository); }
public CategoryController() { _statsRepository = new StatsRepository(); _repository = new SoldOutRepository(); }
public PriceHistoryService(ISoldOutRepository repository) { _repository = repository; }