Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HandleSharesOutStanding"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="dBConnection">The d b connection.</param>
 /// <param name="dos">The dos.</param>
 public HandleSharesOutStanding(ILogger <HandleSharesOutStanding> logger,
                                IDBConnectionHandler <OutstandingSharesMd> dBConnection,
                                IDownloadOutstandingShares dos)
 {
     _dBConnection = dBConnection;
     _dBConnection.ConnectToDatabase("OutstandingShares");
     _logger = logger;
     _dos    = dos;
 }
 public HandleCompanyList(ILogger <HandleCompanyList> logger,
                          IDBConnectionHandler <CompanyDetailMd>
                          dbconCompany, DownloadListedFirms dlf)
 {
     _dbconCompany      = dbconCompany;
     _companyConnection = _dbconCompany.ConnectToDatabase("CompanyDetail");
     _dlf    = dlf;
     _logger = logger;
 }
 /// <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");
 }
 public ObtainFundamentals(ILogger <ObtainFundamentals> log,
                           ObtainCompanyDetails obtainCompanyDetails,
                           IDBConnectionHandler <PiotroskiScoreMd> connectionHandlerCF,
                           EnvHandler envHandler)
 {
     _log = log;
     _obtainCompanyDetails = obtainCompanyDetails;
     _connectionHandlerCF  = connectionHandlerCF;
     _envHandler           = envHandler;
     _connectionHandlerCF.ConnectToDatabase("PiotroskiScore");
 }
Exemple #5
0
 public ObtainGoodInvestments(ILogger <ObtainGoodInvestments> log,
                              IDBConnectionHandler <PiotroskiScoreMd> connectionHandlerCF,
                              IDBConnectionHandler <CompanyDetailMd> dbconCompany,
                              EnvHandler envHandler)
 {
     _log = log;
     _ratingsConnectionHandler = connectionHandlerCF;
     _dbconCompany             = dbconCompany;
     _envHandler = envHandler;
     _ratingsConnectionHandler.ConnectToDatabase("PiotroskiScore");
     _dbconCompany.ConnectToDatabase("CompanyDetail");
 }
Exemple #6
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>
 /// Get statements from data provider and insert it to database.
 /// </summary>
 /// <param name="simId">The sim identifier.</param>
 /// <returns></returns>
 public HandleFinacials(IDBConnectionHandler <CompanyFinancialsMd> dbconCompany,
                        ILogger <HandleFinacials> logger,
                        HandleCompanyList hcl,
                        ListOfStatements los,
                        DownloadReportableItems dri)
 {
     _dbconCompany        = dbconCompany;
     _statementConnection = _dbconCompany.ConnectToDatabase("CompanyFinancials");
     _logger = logger;
     _hcl    = hcl;
     _los    = los;
     _dri    = dri;
 }
Exemple #8
0
 public ResolveCompanyName(ILogger <ResolveCompanyName> logger, EnvHandler envHandler,
                           IDBConnectionHandler <SecuritySymbolMd> connectionHandlerSS,
                           IDBConnectionHandler <LastUpateCollectionMd> connectionHandlerLU,
                           IMapper mapper)
 {
     _logger              = logger;
     _envHandler          = envHandler;
     _connectionHandlerSS = connectionHandlerSS;
     _connectionHandlerLU = connectionHandlerLU;
     _mapper              = mapper;
     _connectionHandlerSS.ConnectToDatabase("SecuritySymbol");
     _connectionHandlerLU.ConnectToDatabase("LastUpdate");
 }
Exemple #9
0
        public WriteAnalyzedValues(IDBConnectionHandler <CompanyFinancialsMd> dbconCompany,
                                   IDBConnectionHandler <PiotroskiScoreMd> dbpiScore,
                                   ILogger <WriteAnalyzedValues> logger,
                                   HandleCompanyList hcl,
                                   DataFileReader dfr)
        {
            _dbconCompany        = dbconCompany;
            _statementConnection = _dbconCompany.ConnectToDatabase("CompanyFinancials");

            _dbpiScore           = dbpiScore;
            _dbpiScoreConnection = _dbpiScore.ConnectToDatabase("PiotroskiScore");

            _logger = logger;
            _hcl    = hcl;
            _dfr    = dfr;
        }