public BattleShipService(IBoardRepo boardRepo, IMatchRepo matchRepo, IShipRepo shipRepo, IPlayerRepo playerRepo)
 {
     _boardRepo  = boardRepo;
     _matchRepo  = matchRepo;
     _shipRepo   = shipRepo;
     _playerRepo = playerRepo;
 }
 private void ChoosePlayers_Click(object sender, RoutedEventArgs e)
 {
     _playerRepo = new PlayerRepo();
     _playerList = _playerRepo.ListOfPlayers(1);
     _gameboard  = new Gameboard(_playerList, _dice);
     UpdateScreen();
 }
 public RegionalVotesController(ISchoolRepo schoolRepo, IPlayerRepo playerRepo, ITeamRepo TeamRepo, IRegionalVoteRepo iRegionalVoteRepo)
 {
     this.iSchoolRepo       = schoolRepo;
     this.iPlayerRepo       = playerRepo;
     this.iTeamRepo         = TeamRepo;
     this.iRegionalVoteRepo = iRegionalVoteRepo;
 }
Exemple #4
0
 public PlayersController(IPlayerRepo playerRepo, ISchoolRepo schoolRepo, ITeamRepo teamRepo, ITeamPlayerRepo iTeamPlayerRepo)
 {
     this.iPlayerRepo     = playerRepo;
     this.iSchoolRepo     = schoolRepo;
     this.iTeamRepo       = teamRepo;
     this.iTeamPlayerRepo = iTeamPlayerRepo;
 }
        public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
        {
            //if (Mode == "DB")
            //{
            //    _playerRepo = new PlayersRepo();
            //    _teamRepo = new TeamRepo();
            //}
            //else
            //{
            //    _playerRepo = new PlayerMockRepo();

            //}

            _playerRepo = playerRepo;
            _teamRepo = teamRepo;
        }
Exemple #6
0
 public PlayerUoW(SqlDAL iDAL, IPlayerRepo PlayerRepo)
 {
     _iDAL       = iDAL;
     _playerRepo = PlayerRepo;
 }
 public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
 {
     _playerRepo = playerRepo;
     _teamRepo = teamRepo;
 }
 public GameService(IPlayerRepo playerRepo)
 {
     _playerRepo = playerRepo;
 }
Exemple #9
0
 public PlayerService(IPlayerRepo repo, ITeamRepo teamRepo)
 {
     _repo     = repo;
     _teamRepo = teamRepo;
 }
Exemple #10
0
 public LogicServices(IPlayerRepo playerRepo, IBuildRepo buildRepo, IUpgradesRepo upgradeRepo)
 {
     this.playerrepo  = playerRepo;
     this.buildrepo   = buildRepo;
     this.upgraderepo = upgradeRepo;
 }
 public PlayerController(IPlayerRepo playerRepo, ITeamRepo teamRepo)
 {
     _playerRepo = playerRepo;
     _teamRepo   = teamRepo;
 }
Exemple #12
0
 public PlayerController(IPlayerRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
 public PlayerController()
 {
     playerRepo = new PlayerRepo();
 }
Exemple #14
0
 public AuthController()
 {
     this.playerRepo = new PlayerRepo();
 }
Exemple #15
0
 public PlayerController(IPlayerRepo playerRepo)
 {
     _playerRepo = playerRepo;
 }
Exemple #16
0
 public PlayerBizLog(IPlayerRepo _repo)
 {
     repo = _repo;
 }
Exemple #17
0
 public PlayerService(IPlayerRepo playerRepo)
 {
     _playerRepo = playerRepo;
 }
 public PlayerController(IPlayerRepo PlayerRepo)
 {
     this.PlayerRepo = PlayerRepo ?? throw new ArgumentNullException(nameof(PlayerRepo));
 }
 public FightController()
 {
     playerRepo = new PlayerRepo();
 }
 public PlayerService()
 {
     repo           = new PlayerRepo();
     contestantRepo = new ContestantRepo();
 }