Beispiel #1
0
        private void SeedCountriesData()
        {
            var country = SeedDataTests.GetCountriesData();

            this.countryRepository.Add(country);

            this.countryRepository.SaveChanges();
        }
Beispiel #2
0
        private void SeedTeamsLeaguesData()
        {
            var teamLeagues = SeedDataTests.GetTeamLeaguesData();

            foreach (var teamLeague in teamLeagues)
            {
                this.teamLeagueRepository.Add(teamLeague);
            }

            this.teamLeagueRepository.SaveChanges();
        }
Beispiel #3
0
        private void SeedTeamsData()
        {
            var teams = SeedDataTests.GetTeamsData();

            foreach (var team in teams)
            {
                this.teamRepository.Add(team);
            }

            this.teamRepository.SaveChanges();
        }
Beispiel #4
0
        private void SeedSeasonsData()
        {
            var seasons = SeedDataTests.GetSeasonData();

            foreach (var season in seasons)
            {
                this.seasonRepository.Add(season);
            }

            this.seasonRepository.SaveChanges();
        }
Beispiel #5
0
        private void SeedTestData()
        {
            var fixtures = SeedDataTests.GetFixturesData();

            foreach (var fixture in fixtures)
            {
                this.fixturesRepository.Add(fixture);
            }

            this.fixturesRepository.SaveChanges();
        }
Beispiel #6
0
        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);
        }