/// <summary> /// Constructor /// </summary> /// <param name="cMCCoinRepository">Repository Interface</param> public BinanceBuilder(ITransactionBuilder transactionBuilder, IApiInformationBuilder apiInformationBuilder, ICoinInformationBuilder coinInformationBuilder) { _trxBldr = transactionBuilder; _apiBldr = apiInformationBuilder; _coinBldr = coinInformationBuilder; _binanceRepo = new BinanceRepository(); this._helper = new ObjectHelper(); this._dtHelper = new DateTimeHelper(); this.lastRun = null; }
public CryptoPortfolioManager(IApiInformationBuilder apiInformationBuilder, ICoinInformationBuilder coinInfoBuilder, ITransactionBuilder transactionBuilder, ICoinMarketCapBuilder coinMarketCapBuilder) { this._nnBldr = new NinetyNineCryptoBuilder(); this._coindarBldr = new CoindarBuilder(); this._cmcBldr = coinMarketCapBuilder; this._coinInfoBldr = coinInfoBuilder; this._displayCoinBldr = new DisplayCoinBuilder(coinInfoBuilder); this._apiBldr = apiInformationBuilder; this._trxBldr = transactionBuilder; this._binanceBldr = new BinanceBuilder(transactionBuilder, apiInformationBuilder, coinInfoBuilder); }