public PlayersController()
        {
            SportsDataContext context = new SportsDataContext();

            _playerDb = new PlayerRepository(context);
            _teamDb = new TeamRepository(context);
        }
Ejemplo n.º 2
0
 public IssueManager(IIssueRepository issueRepository, IUserSessionHelper userSessionHelper, IActivityRepository activityRepository, ITeamRepository teamRepository)
 {
     this.userSessionHelper = userSessionHelper;
     this.issueRepository = issueRepository;
     this.activityRepository = activityRepository;
     this.teamRepository = teamRepository;
 }
Ejemplo n.º 3
0
 public EmailManager(IEmailRepository emailRepository, IOptions<AppSettings> settings,
     ITeamRepository teamRepository)
 {
     this._teamRepository = teamRepository;
     this._emailRepository = emailRepository;
     this._settings = settings.Value;
 }
 public BotsController(ITeamManagementCommands teamCommands, ITeamRepository teamRepository, IConfigurationRepository configurationRepository, ILeaderboardRepository leaderboardRepository)
 {
     _teamCommands = teamCommands;
     _teamRepository = teamRepository;
     _configurationRepository = configurationRepository;
     _leaderboardRepository = leaderboardRepository;
 }
Ejemplo n.º 5
0
 public EventController()
 {
     // tymczasowo; potem użyć jakiejś frameworka do DI
     this._eventRepo = new EventRepository();
     this._athRepo = new AthleteRepository();
     this._teamRepo = new TeamRepository();
 }
 public CsvResourceAllocationBridge(IResourceAllocationRepository resourceAllocationRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, ITeamRepository teamRepository, IDepartmentRepository departmentRepository)
 {
     ResourceAllocationRepository = resourceAllocationRepository;
     ProjectRepository = projectRepository;
     ResourceRepository = resourceRepository;
     TeamRepository = teamRepository;
     DepartmentRepository = departmentRepository;
 }
Ejemplo n.º 7
0
 public UserService(IUserRepository userRepository, IWorkshopRepository workshopRepository, ITeamRepository teamRepository, 
     ICryptographerService cryptographerSerivce)
 {
     _userRepository = userRepository;
     _cryptographerSerivce = cryptographerSerivce;
     _teamRepository = teamRepository;
     _workshopRepository = workshopRepository;
 }
 public UserAccountManager(IAccountRepository accountRepository, ITeamRepository teamRepository, IUserAccountEmailManager userAccountEmailManager, IUserSessionHelper userSessionHelper, IProjectRepository projectRepository)
 {
     this.accountRepository = accountRepository;
     this.teamRepository = teamRepository;
     this.userAccountEmailManager = userAccountEmailManager;
     this.userSessionHelper = userSessionHelper;
     this.projectRepository = projectRepository;
 }
Ejemplo n.º 9
0
 public InvoiceBL()
 {
     this.invoiceRepository = new InvoiceRepository();
     this.teamRepository = new TeamRepository();
     this.userRepository = new UserRepository();
     this.opportunityRepository = new OpportunityRepository();
     this.orderRepository = new OrderRepository();
 }
Ejemplo n.º 10
0
 public TeamController(ITeamRepository repository, IUnitOfWork unitOfWork,ITeam team, ITeamManager manager)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
     _repository.UnitOfWork = unitOfWork;
     _team = team;
     _manager = manager;
     _manager.TeamRepository = _repository;
 }
        public AccountLogic(IUnitOfWork unit, IAccountRepository repo, ITeamRepository t, IAttainmentRepository a, IMembershipRepository m)
        {
            this.Unit = unit;
            this.Repo = repo;
            this.tRepo = t;
            this.mRepo = m;
            this.attRepo = a;

        }
Ejemplo n.º 12
0
        public EmailService(EmailSettings emailSettings, IMailTemplateService templateService, IActivityRepository activityRepository, ITeamRepository teamRepository)
        {
            _emailSettings = emailSettings;
            _templateService = templateService;
            _activityRepository = activityRepository;
            _teamRepository = teamRepository;

            _mailMessage = new MailMessage();
        }
Ejemplo n.º 13
0
 public CsvStatusEtlBridge(IStatusReportRepository statusReportRepository, IProjectRepository projectRepository, ITopicRepository topicRepository, IResourceRepository resourceRepository, ITeamRepository teamRepository, IDepartmentRepository departmentRepository)
 {
     StatusReportRepository = statusReportRepository;
     ProjectRepository = projectRepository;
     TopicRepository = topicRepository;
     ResourceRepository = resourceRepository;
     TeamRepository = teamRepository;
     DepartmentRepository = departmentRepository;
 }
Ejemplo n.º 14
0
 public TeamServices(ITeamRepository teamRepository, IPlayerRepository playerRepository, ICoachRepository coachRepository, ICurriculumRepository curriculumRepository, ITeamCurriculumRepository teamCurriculumRepository, IClubRepository clubRepository)
 {
     _teamRepository = teamRepository;
     _playerRepository = playerRepository;
     _coachRepository = coachRepository;
     _curriculumRepository = curriculumRepository;
     _teamCurriculumRepository = teamCurriculumRepository;
     _clubRepository = clubRepository;
 }
Ejemplo n.º 15
0
        public TeamsController(ITeamRepository teamRepository)
        {
            if (teamRepository == null)
            {
                throw new ArgumentNullException("teamRepository");
            }

            _teamRepository = teamRepository;
        }
 public TeamViewService(ITeamMapper teamMapper, IUserRepository userRepository, IUserValidator userValidator, 
     ITeamValidator teamValidator, IUserMapper userMapper, ITeamRepository teamRepository)
 {
     _teamMapper = teamMapper;
     _teamRepository = teamRepository;
     _userMapper = userMapper;
     _teamValidator = teamValidator;
     _userValidator = userValidator;
     _userRepository = userRepository;
 }
Ejemplo n.º 17
0
 public PlayerServices(IPlayerRepository playerRepository, IActivityStatusChangeRepository activityStatusChangeRepository, ITeamRepository teamRepository, IUserRepository userRepository, IClubRepository clubRepository, IAddressRepository addressRepository, IUserDetailRepository userDetailRepository)
 {
     _playerRepository = playerRepository;
     _activityStatusChangeRepository = activityStatusChangeRepository;
     _teamRepository = teamRepository;
     _userRepository = userRepository;
     _clubRepository = clubRepository;
     _addressRepository = addressRepository;
     _userDetailRepository = userDetailRepository;
 }
Ejemplo n.º 18
0
 public ProductionController(IContactRepository contactRepository, IAddressRepository addressRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquirydetailsRepository, IEnquiryRepository enquiryRepository,IProjectRepository projectRepository,ITeamRepository teamRepository)
 {
     this.contactRepository = contactRepository;
     this.addressRepository = addressRepository;
     this.statusRepository = statusRepository;
     this.enquirydetailsRepository = enquirydetailsRepository;
     this.enquiryRepository = enquiryRepository;
     this.projectRepository = projectRepository;
     this.teamRepository = teamRepository;
 }
 public UserAccountManager(IUserRepository userRepository, IUserAuthHelper userSessionHelper, IProjectManager projectManager, ITeamRepository teamRepository, IEmailManager emailManager, IEmailRepository emailRepository, IOptions<AppSettings> settings)
 {
     this.emailManager = emailManager;
     this.userRepository = userRepository;
     this.userSessionHelper = userSessionHelper;
     this.projectManager = projectManager;
     this.teamRepository = teamRepository;
     this.emailRepository = emailRepository;
     this._settings = settings.Value;
 }
Ejemplo n.º 20
0
 protected Team CreateTeam(string teamName, Division division, ITeamRepository teamRepository)
 {
     var team = teamRepository.LoadTeamByName(teamName);
     if (team == null)
     {
         teamRepository.SaveNewTeam(teamName, division);
         team = teamRepository.LoadTeamByName(teamName);
     }
     return team;
 }
Ejemplo n.º 21
0
 public CurriculumProcessServices(ITeamRepository teamRepository, ITeamCurriculumRepository teamCurriculumRepository, ISessionResultRepository sessionResultRepository, ISessionAttendanceRepository sessionAttendanceRepository, IPlayerObjectiveRepository playerObjectiveRepository, IPlayerBlockObjectiveRepository playerBlockObjectiveRepository, IBlockObjectiveStatementRepository blockObjectiveStatementRepository, IPlayerRatingsRepository playerRatingsRepository)
 {
     _teamRepository = teamRepository;
     _teamCurriculumRepository = teamCurriculumRepository;
     _sessionResultRepository = sessionResultRepository;
     _sessionAttendanceRepository = sessionAttendanceRepository;
     _playerObjectiveRepository = playerObjectiveRepository;
     _playerBlockObjectiveRepository = playerBlockObjectiveRepository;
     _blockObjectiveStatementRepository = blockObjectiveStatementRepository;
     _playerRatingsRepository = playerRatingsRepository;
 }
Ejemplo n.º 22
0
 public FantasyDataGamesImporter(IGameManager gameManager, ITeamRepository teamRepository, IGameOptionRepository optionRepository)
 {
     _gameManager = gameManager;
     _teamRepository = teamRepository;
     _optionRepository = optionRepository;
     _fantasyDataGames = new List<FantasyDataGame>();
     _connectionString = ConfigurationManager.ConnectionStrings["sportpicksdb"].ConnectionString;
     _season = Convert.ToInt32(ConfigurationManager.AppSettings["CurrentNflSeason"]);
     _fantasyDataApiKey = ConfigurationManager.AppSettings["FantasyDataApiKey"];
     _fantasyDataGamesUrl = ConfigurationManager.AppSettings["FantasyDataScoresUrl"];
 }
 public HomeController(IUserService userService, IAuthenticationService authenticationService, IDocumentService documentService, 
     ITeamRepository teamRepository, IWorkshopRepository workshopRepository, IDocumentMapper documentMapper)
     : base(authenticationService)
 {
     _userService = userService;
     _documentMapper = documentMapper;
     _workshopRepository = workshopRepository;
     _teamRepository = teamRepository;
     _documentService = documentService;
     _authenticationService = authenticationService;
 }
Ejemplo n.º 24
0
        public TeamsController(IEmployeeRepository employeeRepository, ITeamRepository teamRepository)
        {
            if (employeeRepository == null)
                throw new ArgumentNullException("employeeRepository");

            if (teamRepository == null)
                throw new ArgumentNullException("teamRepository");

            this.employeeRepository = employeeRepository;
            this.teamRepository = teamRepository;
        }
        public NflDotComTeamMappingImporter(ITeamRepository teamRepository)
        {
            if (teamRepository == null)
            {
                throw new ArgumentNullException("teamRepository");
            }

            _teamRepository = teamRepository;
            _teams = new List<NflDotComTeam>();
            _connectionString = ConfigurationManager.ConnectionStrings["sportpicksdb"].ConnectionString;
        }
Ejemplo n.º 26
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            _repository = new TeamRepository();

            ImageButton save = Panel1.Menu.NewImageButton();
            save.ImageUrl = umbraco.GlobalSettings.Path + "/images/editor/save.gif";
            save.AlternateText = "Save";
            save.Click += new ImageClickEventHandler(SaveRecord);
        }
 public UserViewService(IUserRepository userRepository, IWorkshopRepository workshopRepository, ITeamRepository teamRepository,
     IUserValidator userValidator, IUserMapper userMapper, ICryptographerService cryptoService, IUserService userService)
 {
     _userRepository = userRepository;
     _userService = userService;
     _cryptoService = cryptoService;
     _userMapper = userMapper;
     _userValidator = userValidator;
     _workshopRepository = workshopRepository;
     _teamRepository = teamRepository;
 }
Ejemplo n.º 28
0
 public CommentManager(ICommentRepository commentRepository,IUserAuthHelper userSessionHelper,
     IIssueRepository issueRepository, IActivityRepository activityRepository,IEmailManager emailManager,ITeamRepository teamRepository,IEmailRepository emailRepository, IOptions<AppSettings> settings)
 {
     this._settings = settings.Value;
     this._emailRepository = emailRepository;
     this._teamRepository = teamRepository;
     this._emailManager = emailManager;
     this._commentRepository = commentRepository;
     this._userSessionHelper = userSessionHelper;
     this._issueRepository = issueRepository;
     this._activityRepository = activityRepository;
 }
 private void SetUpDependencies()
 {
     _userRepository = _administrationMockRepository.GetUserRepository();
     _workshopRepository = _administrationMockRepository.GetWorkshopRepository();
     _teamRepository = _administrationMockRepository.GetTeamRepository();
     _cryptographerService = _administrationMockRepository.GetCryptographerService();
     _userMapper = _administrationMockRepository.GetUserMapper();
     _userValidator = _administrationMockRepository.GetUserValidator(true);
     _workshopMapper = _administrationMockRepository.GetWokshopMapper();
     _teamMapper = _administrationMockRepository.GetTeamMapper();
     _teamValidator = _administrationMockRepository.GetTeamValidator(true);
     _workshopValidator = _administrationMockRepository.GetWorkshopValidator(true);
 }
Ejemplo n.º 30
0
        public void SetUpFixture()
        {
            _mockGameRespository = Substitute.For<IGameRepository>();
            _mockTeamRepository = Substitute.For<ITeamRepository>();

            _mockTeamRepository.GetTeams().Returns(new List<Team>
            {
                new Team { TeamId = 1, Name = "Team1" },
                new Team { TeamId = 2, Name = "Team2" },
                new Team { TeamId = 3, Name = "Team3" },
                new Team { TeamId = 4, Name = "Team4" }
            });
        }
Ejemplo n.º 31
0
 public CreateTeamByRequest(ITeamRepository teamRepository)
 {
     this._teamRepository = teamRepository;
 }
Ejemplo n.º 32
0
 public DeleteTeamCommandHandler(ITeamRepository teamRepository, IUserStore <User> userStore)
 {
     _teamRepository = teamRepository;
     this.userStore  = userStore;
 }
Ejemplo n.º 33
0
 public TeamService()
 {
     teamRepository = new TeamRepository();
 }
Ejemplo n.º 34
0
 public TeamService(ITeamRepository teamRepository)
 {
     this.teamRepository = teamRepository;
 }
Ejemplo n.º 35
0
 public UpdateTeamCommandHandler(ITeamRepository repository)
 {
     this.repository = repository;
 }
Ejemplo n.º 36
0
 public TeamRepositoryTests(ITestOutputHelper output, DynamicsWebAppFixture fixture) : base(output, fixture)
 {
     teamRepository = Services.GetRequiredService <ITeamRepository>();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="AddStaffToTeamRequestHandler" /> class.
 /// </summary>
 /// <param name="teamRepository">The team repository.</param>
 /// <param name="staffRepository">The staff repository.</param>
 public AddStaffToTeamRequestHandler(ITeamRepository teamRepository, IStaffRepository staffRepository)
 {
     _teamRepository  = teamRepository;
     _staffRepository = staffRepository;
 }
Ejemplo n.º 38
0
 public TeamAppService(ITeamRepository teamRepository, IHREmployeeRepository employeeRepository, IHRDepartmentRepository departmentRepository)
 {
     _teamRepository       = teamRepository;
     _employeeRepository   = employeeRepository;
     _departmentRepository = departmentRepository;
 }
 public SessieService(ISessionRepository sessieRepo, ITeamRepository teamRepo, IPuzzelRepository puzzelRepo)
 {
     _sessieRepo = sessieRepo;
     _teamRepo   = teamRepo;
     _puzzelRepo = puzzelRepo;
 }
 public ApiTeamServerRequestModelValidator(ITeamRepository teamRepository)
 {
     this.TeamRepository = teamRepository;
 }
Ejemplo n.º 41
0
 public TeamService(ITeamRepository repo)
 {
     _repo = repo;
 }
 public UserController(ITeamRepository TeamRepository, IUserRepository UserRepository)
 {
     _TeamRepository = TeamRepository;
     _UserRepository = UserRepository;
 }
Ejemplo n.º 43
0
 public IndividualPlayerKilled(ITeamRepository teamRepository, IAssetsRepository assetsRepository, ITeamPlayerRepository teamPlayerRepository)
 {
     _teamRepository       = teamRepository;
     _teamPlayerRepository = teamPlayerRepository;
     _assetsRepository     = assetsRepository;
 }
Ejemplo n.º 44
0
 public TeamService(ITeamRepository teamRepository, IMapper mapper)
 {
     _teamRepository = teamRepository;
     _mapper         = mapper;
 }
Ejemplo n.º 45
0
 public ViewTeamUseCase(ITeamRepository teamRepository, IProjectRepository projectRepository)
 {
     _teamRepository    = teamRepository;
     _projectRepository = projectRepository;
 }
Ejemplo n.º 46
0
 public TeamsMutation(ITeamRepository teamRepository, IMemberRepository memberRepository)
 {
     _teamRepository   = teamRepository;
     _memberRepository = memberRepository;
 }
Ejemplo n.º 47
0
 public TeamByIdQueryHandler(ITeamRepository teamRepository)
 {
     this.teamRepository = teamRepository;
 }
Ejemplo n.º 48
0
 public TeamController(ITeamService teamService, IUserRepository userRepository, IUserService userService, ITeamRepository teamRepository, IMessageService messageService)
 {
     _teamService    = teamService;
     _userRepository = userRepository;
     _userService    = userService;
     _teamRepository = teamRepository;
     _messageService = messageService;
 }
 public FixtureController(ClubContext context, IFixtureRepository fixtureRepository, ITeamRepository teamRepository, IPersonRepository personRepository, IPlayerStatRepository playerStatRepository, ILogger <FixtureController> logger)
 {
     _context              = context;
     _fixtureRepository    = fixtureRepository;
     _teamRepository       = teamRepository;
     _personRepository     = personRepository;
     _playerStatRepository = playerStatRepository;
     _logger = logger;
 }
Ejemplo n.º 50
0
 static TeamService()
 {
     _teamRepository = RepositoryFactory.GetRepository <ITeamRepository, int, Team>();
     _taskRepository = RepositoryFactory.GetRepository <ITaskRepository, long, Task>();
 }
Ejemplo n.º 51
0
 public ProductionController(IContactRepository contactRepository, IAddressRepository addressRepository, IStatusRepository statusRepository, IEnquiryDetailsRepository enquirydetailsRepository, IEnquiryRepository enquiryRepository, IProjectRepository projectRepository, ITeamRepository teamRepository)
 {
     this.contactRepository        = contactRepository;
     this.addressRepository        = addressRepository;
     this.statusRepository         = statusRepository;
     this.enquirydetailsRepository = enquirydetailsRepository;
     this.enquiryRepository        = enquiryRepository;
     this.projectRepository        = projectRepository;
     this.teamRepository           = teamRepository;
 }
Ejemplo n.º 52
0
 public CommentManager(ICommentRepository commentRepository, IUserAuthHelper userSessionHelper,
                       IIssueRepository issueRepository, IActivityRepository activityRepository, IEmailManager emailManager, ITeamRepository teamRepository, IEmailRepository emailRepository, IOptions <TeamBinsAppSettings> settings)
 {
     this._settings           = settings.Value;
     this._emailRepository    = emailRepository;
     this._teamRepository     = teamRepository;
     this._emailManager       = emailManager;
     this._commentRepository  = commentRepository;
     this._userSessionHelper  = userSessionHelper;
     this._issueRepository    = issueRepository;
     this._activityRepository = activityRepository;
 }
Ejemplo n.º 53
0
 public UserService(IUserRepository userRepository, IRoleRepository roleRepository, ITeamRepository teamRepository, ILdapAuthenticationModeRepository ldapAuthenticationModeRepository, IMapper mapper, ILdapConnectionService ldapConnectionService)
 {
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.teamRepository = teamRepository;
     this.ldapAuthenticationModeRepository = ldapAuthenticationModeRepository;
     this.mapper = mapper;
     this.ldapConnectionService = ldapConnectionService;
 }
Ejemplo n.º 54
0
 public PlayersController(ITeamRepository repository, IMapper mapper, LinkGenerator linkGenerator)
 {
     this.repository    = repository;
     this.mapper        = mapper;
     this.linkGenerator = linkGenerator;
 }
Ejemplo n.º 55
0
 public TeamController(ITeamRepository teamRepository, IMapper mapper, ILogger <TeamController> log)
 {
     this.teamRepository = teamRepository;
     this.mapper         = mapper;
     this.log            = log;
 }
 public DefineTeamCommandHandler(ITeamRepository teamRepository)
 {
     this.teamRepository = teamRepository;
 }
Ejemplo n.º 57
0
 public TeamsController(ITeamRepository teamRepository)
 {
     this.teamRepository = teamRepository;
 }
Ejemplo n.º 58
0
        public UserViewModel(IWindowService windowService, IUserRepository userRepository, ITeamRepository teamRepository, IMediator mediator)
        {
            this._windowService  = windowService;
            this._userRepository = userRepository;
            this._teamRepository = teamRepository;
            this._mediator       = mediator;

            _mediator.Register <UserOpenDetailMessage>(UserOpenDetail);
            ShowTeamInfoCommand  = new RelayCommand <Guid>(ShowTeamInfo);
            OpenNewWindowCommand = new RelayCommand <string>(OpenNewWindow);
        }
 public TeamController(ITeamRepository teamRepository)
 {
     _teamRepository = teamRepository;
 }
 public TeamRostersController(ITeamRepository _teamRepository)
 {
     teamRepository = _teamRepository;
 }