public MainWindowViewModel( ICurrencyCodeRepository currencyCodeRepository, ICurrencyRateRepository currencyRateRepository ) { this.currencyCodeRepository = currencyCodeRepository; this.currencyRateRepository = currencyRateRepository; CurrencyCodes = new ObservableCollection <CurrencyCode>(); CurrencyRates = new ObservableCollection <CurrencyRate>(); SearchResults = new ObservableCollection <SearchResult>(); LoadCurrencyCodesAsync(); LoadCurrencyRatesAsync(); }
public ValidationService(ICurrencyCodeRepository currencyCodeRepository) { _currencyCodeRepository = currencyCodeRepository; }