public void FillPrices(PriceRepository priceRepository) { foreach (var card in Cards) { card.PricesValues = priceRepository.GetPrice(card); } IsPriceLoadingComplete = true; PriceLoadingComplete?.Invoke(); }
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(); }