コード例 #1
0
        public void Execute(JobExecutionContext context)
        {
            var footballDataRepository = new FootballDataRepository();
            LoadResults(footballDataRepository);

            LoadFixtures(footballDataRepository);
        }
コード例 #2
0
        private static void LoadFixtures(FootballDataRepository footballDataRepository)
        {
            var fixtures = footballDataRepository.LoadCsvFromUri(footballDataRepository.LatestFixturesUri);

            if (fixtures != null)
            {
                new FixtureImporter().Import(fixtures, "Championship", "E2");
            }
        }
コード例 #3
0
        private static void LoadResults(FootballDataRepository footballDataRepository)
        {
            var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.ChampionshipResultsUri);

            if (results != null)
            {
                var resultImporter = new ResultImporter();
                resultImporter.Import(results, "Championsip", "E2");
            }
        }
コード例 #4
0
        public void Execute(JobExecutionContext context)
        {
            var footballDataRepository = new FootballDataRepository();
            var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.LatestFixturesUri);

            if (results != null)
            {
                var resultImporter = new ResultImporter();
                resultImporter.Import(results, "Championsip", "E2");
            }
        }