Exemplo n.º 1
0
 public TeamsController(ITeamRepo teamRepo, UserManager <ApplicationUser> userManager, ISupervisorRepo supervisorRepo)
 {
     _teamRepo       = teamRepo;
     _userManager    = userManager;
     _supervisorRepo = supervisorRepo;
     //  _context = context;
 }
 public RegionalVotesController(ISchoolRepo schoolRepo, IPlayerRepo playerRepo, ITeamRepo TeamRepo, IRegionalVoteRepo iRegionalVoteRepo)
 {
     this.iSchoolRepo       = schoolRepo;
     this.iPlayerRepo       = playerRepo;
     this.iTeamRepo         = TeamRepo;
     this.iRegionalVoteRepo = iRegionalVoteRepo;
 }
Exemplo n.º 3
0
        public MainWindow()
        {
            //if (WorldCup.Net.Configuration.Exists())
            //{
            //    WorldCup.Net.Configuration.ReadConfigurationFromText(false);
            //    if (Net.Configuration.AppLanguage==Configuration.Language.Croatian)
            //    {
            //        TranslationSource.Instance.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("hr");
            //    }
            //    else
            //    {
            //        TranslationSource.Instance.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("");

            //    }


            //}
            //else
            //{

            //}
            repo = RepoFactory.GenerateRepo();

            InitializeComponent();
        }
Exemplo n.º 4
0
 public PlayersController(IPlayerRepo playerRepo, ISchoolRepo schoolRepo, ITeamRepo teamRepo, ITeamPlayerRepo iTeamPlayerRepo)
 {
     this.iPlayerRepo     = playerRepo;
     this.iSchoolRepo     = schoolRepo;
     this.iTeamRepo       = teamRepo;
     this.iTeamPlayerRepo = iTeamPlayerRepo;
 }
Exemplo n.º 5
0
 public Form1()
 {
     InitializeComponent();
     repo = RepoFactory.GenerateRepo();
     SetupPanelsDragAndDrop(new List <FlowLayoutPanel> {
         pnlPlayers, pnlFavoritePlayers
     });
 }
        public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
        {
            //if (Mode == "DB")
            //{
            //    _playerRepo = new PlayersRepo();
            //    _teamRepo = new TeamRepo();
            //}
            //else
            //{
            //    _playerRepo = new PlayerMockRepo();

            //}

            _playerRepo = playerRepo;
            _teamRepo = teamRepo;
        }
Exemplo n.º 7
0
 public TeamService(ITeamRepo repo)
 {
     _repo = repo;
 }
Exemplo n.º 8
0
 public PlayerService(IPlayerRepo repo, ITeamRepo teamRepo)
 {
     _repo     = repo;
     _teamRepo = teamRepo;
 }
 public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
 {
     _playerRepo = playerRepo;
     _teamRepo   = teamRepo;
 }
Exemplo n.º 10
0
 public TeamManager(IAppUserRepo appUserRepo, ITeamRepo teamRepo, ITeamUserRepo teamUserRepo, IDependencyManager depManager, ISecurity security, IAdminLogger logger, IAppConfig appConfig) : base(logger, appConfig, depManager, security)
 {
     _appUserRepo  = appUserRepo;
     _teamRepo     = teamRepo;
     _teamUserRepo = teamUserRepo;
 }
Exemplo n.º 11
0
 public TeamService()
 {
     teamRepo = new TeamRepo();
 }
 public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
 {
     _playerRepo = playerRepo;
     _teamRepo = teamRepo;
 }
Exemplo n.º 13
0
 public TeamService(ITeamRepo repo)
 {
     this.repo = repo;
 }
Exemplo n.º 14
0
 //reomve dbcon and use existing method in others repo
 public TeamService(ITeamRepo _teamRepo)
 {
     this._teamRepo = _teamRepo;
 }
Exemplo n.º 15
0
 public TeamController(ITeamRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }