public ExchangeRateViewModel(string currencyCode, BitcoinExchangeRate exchangeRate) { _exchangeRate = exchangeRate; _currencyCode = currencyCode ?? ""; _mainViewModel = ServiceLocator.Current.GetInstance <MainViewModel>(); _bitcoinDataService = ServiceLocator.Current.GetInstance <IBitcoinDataService>(); _rateSettingsApplyService = ServiceLocator.Current.GetInstance <IRateSettingsApplyService>(); _customCurrencyCodeServise = ServiceLocator.Current.GetInstance <ICustomCurrencySymbolService>(); }
public BitcoinDataService(IDataProvideService dataProvideService, IRateSettingsApplyService rateSettingsApplyService, ICustomCurrencySymbolService customCurrencyCodeService, INetworkService networkService) { _helper = new CurrencyHelper(); _dataProvideService = dataProvideService; _rateSettingsApplyService = rateSettingsApplyService; _customCurrencyCodeService = customCurrencyCodeService; _networkService = networkService; }