예제 #1
0
        private async void RunForex()
        {
            logger.LogInformation("RunForex starts at " + Environment.TickCount);
            DataContext dataContext = GetDataContext();

            logger.LogInformation("dataContext == null ? " + (dataContext == null));
            ForexService forexService = new ForexService(dataContext, configuration, logger);

            if (forexService != null)
            {
                ForexModel forexModel = forexService.GetHTTPForex();
                if (forexModel != null)
                {
                    Forex forex = new Models.Forex(forexModel);
                    if (forex != null)
                    {
                        bool result = await forexService.Update(forex);
                    }
                }
            }
            logger.LogInformation("RunForex stops at " + Environment.TickCount);
        }
예제 #2
0
        public void GetHTTPForex_Test()
        {
            ForexModel model = forexService.GetHTTPForex();

            Assert.IsTrue(true);
        }