public UnitOfWork(ImportLeagueContext importLeagueContext)
        {
            this.importLeagueContext = importLeagueContext;

            Competitions = new CompetitionsRepository(importLeagueContext);
            Players      = new PlayersRepository(importLeagueContext);
            Teams        = new TeamsRepository(importLeagueContext);
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            _authRepository = new AuthRepository();

            _competitionRepository = new CompetitionsRepository();

            this.Tournament_ListView.ItemsSource = _competitionRepository.GetCompetitions();
            this.Disciplines.ItemsSource         = _competitionRepository.GetDisciplines();
            this.Places.ItemsSource = _competitionRepository.GetPlaces();
        }