Esempio n. 1
0
        public void FillPrices(PriceRepository priceRepository)
        {
            foreach (var card in Cards)
            {
                card.PricesValues = priceRepository.GetPrice(card);
            }

            IsPriceLoadingComplete = true;
            PriceLoadingComplete?.Invoke();
        }
Esempio n. 2
0
        public Loader(
            CardRepository repository,
            ImageRepository imageRepository,
            LocalizationRepository localizationRepository,
            CardSearcher cardSearcher,
            KeywordSearcher keywordSearcher,
            PriceRepository priceRepository)
        {
            _repository             = repository;
            _imageRepository        = imageRepository;
            _localizationRepository = localizationRepository;
            _cardSearcher           = cardSearcher;
            _keywordSearcher        = keywordSearcher;
            _priceRepository        = priceRepository;

            _loadingActions = createLoadingActions();
        }