public AcceptJSController(IOrderInfoProvider orderInfoProvider, IOrderItemInfoProvider orderItemInfoProvider, ICustomerInfoProvider customerInfoProvider, IStateInfoProvider stateInfoProvider, IAcceptJSOptions acceptJSOptions, IExchangeRateInfoProvider exchangeRateInfoProvider, ICurrencyInfoProvider currencyInfoProvider)
 {
     OrderInfoProvider        = orderInfoProvider;
     OrderItemInfoProvider    = orderItemInfoProvider;
     CustomerInfoProvider     = customerInfoProvider;
     StateInfoProvider        = stateInfoProvider;
     AcceptJSOptions          = acceptJSOptions;
     ExchangeRateInfoProvider = exchangeRateInfoProvider;
     CurrencyInfoProvider     = currencyInfoProvider;
 }
		private GainCapitalRatesProvider(IHubConnectionContext clients)
		{
			_wrapper = DependencyFactory.Container.Resolve<ILoggerWrapper>();

			_gainCapitalRatesService = DependencyFactory.Container.Resolve<IGainCapitalRatesManager>();
			_gainCapitalRatesService.StartProcessing();

			_customerInfo = DependencyFactory.Container.Resolve<ICustomerInfoProvider>();
			_spreadProvider = DependencyFactory.Container.Resolve<IRatesSpreadService>();

			_updateInterval = TimeSpan.FromMilliseconds(Int32.Parse(ConfigurationManager.AppSettings["UpdateInterval"]));

			_timers = new Dictionary<string, Timer>();

			Clients = clients;
		}
        private TrueFXRatesProvider(IHubConnectionContext clients)
        {
            _wrapper = DependencyFactory.Container.Resolve <ILoggerWrapper>();

            _ratesService = DependencyFactory.Container.Resolve <ITrueFXRatesService>();
            _ratesService.StartProcessing();

            _customerInfo   = DependencyFactory.Container.Resolve <ICustomerInfoProvider>();
            _spreadProvider = DependencyFactory.Container.Resolve <IRatesSpreadService>();

            _updateInterval = TimeSpan.FromMilliseconds(Int32.Parse(ConfigurationManager.AppSettings["UpdateInterval"]));

            _timers = new Dictionary <string, Timer>();

            Clients = clients;
        }
 public CustomerController(ICustomerInfoProvider customerInfoProvider)
 {
     this.customerInfoProvider = customerInfoProvider;
 }