public void Execute(JobExecutionContext context) { var footballDataRepository = new FootballDataRepository(); LoadResults(footballDataRepository); LoadFixtures(footballDataRepository); }
private static void LoadFixtures(FootballDataRepository footballDataRepository) { var fixtures = footballDataRepository.LoadCsvFromUri(footballDataRepository.LatestFixturesUri); if (fixtures != null) { new FixtureImporter().Import(fixtures, "Championship", "E2"); } }
private static void LoadResults(FootballDataRepository footballDataRepository) { var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.ChampionshipResultsUri); if (results != null) { var resultImporter = new ResultImporter(); resultImporter.Import(results, "Championsip", "E2"); } }
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"); } }