Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        public ProductController()
        {
            _repository = new SoldOutRepository();

            _statsRepository = new StatsRepository();

            _priceHistoryService = new PriceHistoryService(_repository);
        }
Ejemplo n.º 3
0
 public CategoryController()
 {
     _statsRepository = new StatsRepository();
     _repository = new SoldOutRepository();
 }
Ejemplo n.º 4
0
 public PriceHistoryService(ISoldOutRepository repository)
 {
     _repository = repository;
 }