Пример #1
0
		public MainPageViewModel(ICurrencyConverterService currencyConverter, 
			ICurrencyListService currencyList, 
			IAnalyticsService analyticsService,
			INavigationCache navigationCache,
			IModelFactory modelFactory) 
			: base(analyticsService, navigationCache)
		{
			_currencyConverter = currencyConverter;
			_currencyList = currencyList;
			_modelFactory = modelFactory;

			SetSelectedCurrenciesIfPossible();
		}
Пример #2
0
        public NavigationBuilder(INavigationProvider <TNavigationItem> provider,
                                 NavigationOptions <TNavigationItem> options,
                                 INavigationCache cache)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            _provider = provider;
            _options  = options;
            _cache    = cache;
        }