private void SeedCountriesData() { var country = SeedDataTests.GetCountriesData(); this.countryRepository.Add(country); this.countryRepository.SaveChanges(); }
private void SeedTeamsLeaguesData() { var teamLeagues = SeedDataTests.GetTeamLeaguesData(); foreach (var teamLeague in teamLeagues) { this.teamLeagueRepository.Add(teamLeague); } this.teamLeagueRepository.SaveChanges(); }
private void SeedTeamsData() { var teams = SeedDataTests.GetTeamsData(); foreach (var team in teams) { this.teamRepository.Add(team); } this.teamRepository.SaveChanges(); }
private void SeedSeasonsData() { var seasons = SeedDataTests.GetSeasonData(); foreach (var season in seasons) { this.seasonRepository.Add(season); } this.seasonRepository.SaveChanges(); }
private void SeedTestData() { var fixtures = SeedDataTests.GetFixturesData(); foreach (var fixture in fixtures) { this.fixturesRepository.Add(fixture); } this.fixturesRepository.SaveChanges(); }
private List <string> SeedLeaguesData() { var leagues = SeedDataTests.GetLeaguesData(); List <string> names = new List <string>(); foreach (var league in leagues) { this.leaguesRepository.Add(league); names.Add(league.Name); } this.leaguesRepository.SaveChanges(); return(names); }