public PricingService(ICryptoCompareDataService cryptoCompareDataService, IMathService mathService, IBuilderFactory builderFactory, IPricingContext pricingContext, IExchangeApiServiceFactory exchangeApiServiceFactory) { _threads = new List <Thread>(); _builderFactory = builderFactory; _pricingContext = pricingContext; _exchangeApiServiceFactory = exchangeApiServiceFactory; _cryptoCompareDataService = cryptoCompareDataService; _mathService = mathService; }
//public TradingService(string exchangeCurrentlyHoldingFunds, string primaryCoin, decimal investment) // : this(exchangeCurrentlyHoldingFunds, primaryCoin, investment, new MathService(), new ExchangeApiServiceFactory(), new CryptoCompareDataService(), new ConfigService(), new EmailService()) //{ } public TradingService(IMathService mathService, IExchangeApiServiceFactory apiServiceFactory, ICryptoCompareDataService cryptoCompareDataService, IConfigService configService, IEmailService emailService, IPricingService pricingService, IPricingContext pricingContext) { _mathService = mathService; _apiServiceFactory = apiServiceFactory; _cryptoCompareDataService = cryptoCompareDataService; _configService = configService; _emailService = emailService; _pricingService = pricingService; _pricingContext = pricingContext; }