/// <summary>
 /// Initializes a new instance of the <see cref="ObtainFundamentals"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="resolveCompanyName">Name of the resolve company.</param>
 /// <param name="envHandler">The env handler.</param>
 /// <param name="connectionHandlerCF">The connection handler cf.</param>
 /// <param name="mapper">The mapper.</param>
 public ObtainFundamentals(ILogger <ObtainFundamentals> logger, ResolveCompanyName resolveCompanyName, EnvHandler envHandler, IDBConnectionHandler <PiotroskiScoreMd> connectionHandlerCF, IMapper mapper)
 {
     _logger              = logger;
     _resolveCompanyName  = resolveCompanyName;
     _envHandler          = envHandler;
     _connectionHandlerCF = connectionHandlerCF;
     _mapper              = mapper;
     _connectionHandlerCF.ConnectToDatabase("PiotroskiScore");
 }
Exemple #2
0
 public ObtainGoodInvestments(ILogger <ObtainGoodInvestments> logger,
                              IDBConnectionHandler <PiotroskiScoreMd> connectionHandlerCF,
                              ResolveCompanyName resolveCompanyName,
                              ObtainStockQuote obtainStockQuote,
                              EnvHandler envHandler)
 {
     _logger = logger;
     _connectionHandlerCF = connectionHandlerCF;
     _envHandler          = envHandler;
     _resolveCompanyName  = resolveCompanyName;
     _obtainStockQuote    = obtainStockQuote;
     _ = _connectionHandlerCF.ConnectToDatabase("PiotroskiScore");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ObtainStockQuote"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="resolveCompanyName">Name of the resolve company.</param>
 /// <param name="envHandler">The env handler.</param>
 public ObtainStockQuote(ILogger <ObtainStockQuote> logger, ResolveCompanyName resolveCompanyName, EnvHandler envHandler)
 {
     _logger             = logger;
     _envHandler         = envHandler;
     _resolveCompanyName = resolveCompanyName;
 }