Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public ValidationService(ICurrencyCodeRepository currencyCodeRepository)
 {
     _currencyCodeRepository = currencyCodeRepository;
 }