public DivisionService(IDivisionQueryService divisionQueryService, IWizardRepository wizardRepository, ITransactionRepository transactionRepository, IDivisionRepository divisionRepository) { this._divisionQueryService = divisionQueryService; this._wizardRepository = wizardRepository; this._transactionRepository = transactionRepository; this._divisionRepository = divisionRepository; }
public DivisionAppService(IUnitOfWorkManager uowManager, IDivisionRepository divisionRepository, IDivisionPolicy divisionPolicy) { UowManager = uowManager; DivisionRepository = divisionRepository; DivisionPolicy = divisionPolicy; }
public DivisionService(IDivisionRepository divisionRepository) { if (divisionRepository == null) { throw new ArgumentNullException("DivisionRepository"); } this.divisionRepository = divisionRepository; }
public DivisionModule(IDivisionRepository divisionRepository, IMemberRepository memberRepository) : base("smack/divisions") { _divisionRepository = divisionRepository; _memberRepository = memberRepository; Get["/"] = x => GetAllDivisions(); Get["/{id}/members"] = x => GetMembers(x.id); }
/// <summary> /// Constructor. /// </summary> /// <param name="db"> Db context. </param> /// <param name="divisionRepository"> Repository of divisions. </param> /// <param name="instituteRepository"> Repository of institutes. </param> public DivisionsController( IPublicationAssistantContext db, IDivisionRepository divisionRepository, IInstituteRepository instituteRepository) { _db = db; _divisionRepository = divisionRepository; _instituteRepository = instituteRepository; }
public EmployeeController(ICompanyRepository _companyRepository, IRoleRepository _roleRepository, IInfoCardRepository _infoCardRepository, IDivisionRepository _divisionRepository, IBrioContext _brioContext) { this.companyRepository = _companyRepository; this.roleRepository = _roleRepository; this.infoCardRepository = _infoCardRepository; this.divisionRepository = _divisionRepository; this.brioContext = _brioContext; }
/// <summary> /// Initializes a new instance of the <see cref="DivisionsController"/> class. /// </summary> /// <param name="divisionsIndexViewModel"> /// The <see cref="IDivisionsIndexViewModel"/> that will provide ViewModel data to the Index view. /// </param> /// <param name="divisionsDetailsViewModel"> /// The <see cref="IDivisionsDetailsViewModel"/> that will provide ViewModel data to the Details view. /// </param> /// <param name="divisionRepository"> /// The <see cref="IDivisionRepository"/> by which division data will be accessed. /// </param> /// <param name="sharedRepository"> /// The <see cref="ISharedRepository"/> by which shared data resources will be accessed. /// </param> public DivisionsController( IDivisionsIndexViewModel divisionsIndexViewModel, IDivisionsDetailsViewModel divisionsDetailsViewModel, IDivisionRepository divisionRepository, ISharedRepository sharedRepository) { _divisionsIndexViewModel = divisionsIndexViewModel; _divisionsDetailsViewModel = divisionsDetailsViewModel; _divisionRepository = divisionRepository; _sharedRepository = sharedRepository; }
public TournamentService( ITournamentRepository tournamentRepository, IRaceRepository raceRepository, ITeamRepository teamRepository, IDivisionRepository divisionRepository) { _tournamentRepository = tournamentRepository; _raceRepository = raceRepository; _teamRepository = teamRepository; _divisionRepository = divisionRepository; }
public HomeController(ICompanyRepository _companyRepository, IRoleRepository _roleRepository, IInfoCardRepository _infoCardRepository, IBrioContext _brioContext, IDivisionRepository _divisionRepository, IUserRepository _userRepository) { this.brioContext = _brioContext; this.companyRepository = _companyRepository; this.roleRepository = _roleRepository; this.infoCardRepository = _infoCardRepository; this.divisionRepository = _divisionRepository; this.userRepository = _userRepository; }
/// <summary> /// Constructor. /// </summary> /// <param name="db"> Db context. </param> /// <param name="employeeRepository"> Repository of employees. </param> /// <param name="divisionRepository"> Repository of divisions. </param> /// <param name="publicationRepository"> Repository of publications. </param> public EmployeesController( IPublicationAssistantContext db, IEmployeeRepository employeeRepository, IDivisionRepository divisionRepository, IPublicationBaseRepository publicationRepository) { _db = db; _divisionRepository = divisionRepository; _employeeRepository = employeeRepository; _publicationRepository = publicationRepository; }
public TeamController(ITeamRepository teamRepository, IParticipantRepository participantRepository, IMapper mapper, ITournamentParameterRepository tournamentParameterRepository, IDivisionRepository divisionRepository, IGenderRepository genderRepository, IPromotionalCodeRepository promoCodeRepository) { TeamRepository = teamRepository; ParticipantRepository = participantRepository; TournamentParameterRepository = tournamentParameterRepository; DivisionRepository = divisionRepository; GenderRepository = genderRepository; PromoCodeRepository = promoCodeRepository; Mapper = mapper; }
public PlayoffService(IPlayoffSeedRepository playoffSeedRepository, ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository, IDivisionRepository divisionRepository, IScheduleRepository scheduleRepository, IScheduleService scheduleService, ILogger logger) { _playoffSeedRepository = playoffSeedRepository ?? throw new ArgumentNullException(nameof(playoffSeedRepository)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository)); _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); _scheduleRepository = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository)); _scheduleService = scheduleService ?? throw new ArgumentNullException(nameof(scheduleService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void GivenADivisionService_WhenCreateDivision_ThenANewDivisionObjectIsReturned() { //Given string name = "test"; string originalName = "original"; int persondirectorId = 0; IDivisionRepository divisionRepository = Substitute.For <IDivisionRepository>(); var divisionService = new DivisionService(divisionRepository); //When var newDivision = divisionService.CreateDivision(name, originalName, persondirectorId); //Then Assert.IsType <Division>(newDivision); }
public ScheduleService(ILogger <ScheduleService> logger, ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository, IDivisionRepository divisionRepository, IScheduleRepository scheduleRepository, IScheduleMapper scheduleMapper, IRosterService rosterService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository)); _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); _scheduleRepository = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository)); _scheduleMapper = scheduleMapper ?? throw new ArgumentNullException(nameof(scheduleMapper)); _rosterService = rosterService ?? throw new ArgumentNullException(nameof(rosterService)); }
public ActivityService(ILogger <IActivityService> logger, IActivityRepository activityRepository, IActivityQueryService activityQueryService, IWizardQueryService wizardQueryService, IDivisionRepository divisionRepository, IApplicantQueryService applicantQueryService, ITransactionRepository transactionRepository, IWizardProfileRepository wizardProfileRepository, IWizardRepository wizardRepository, IApplicantRepository applicantRepository) { this._logger = logger; this._activityRepository = activityRepository; this._activityQueryService = activityQueryService; this._wizardQueryService = wizardQueryService; this._divisionRepository = divisionRepository; this._applicantQueryService = applicantQueryService; this._transactionRepository = transactionRepository; this._wizardProfileRepository = wizardProfileRepository; this._wizardRepository = wizardRepository; this._applicantRepository = applicantRepository; }
public WizardService(IWizardRepository wizardRepository, IWizardQueryService wizardQueryService, IWizardProfileRepository wizardPRofileRepository, IWizardProfileQueryService wizardProfileQueryService, ITransactionRepository transactionRepository, ILogger <WizardService> logger, IDivisionQueryService divisionQueryService, IDivisionRepository divisionRepository) { this._wizardRepository = wizardRepository; this._wizardQueryService = wizardQueryService; this._wizardPRofileRepository = wizardPRofileRepository; this._wizardProfileQueryService = wizardProfileQueryService; this._transactionRepository = transactionRepository; this._logger = logger; this._divisionQueryService = divisionQueryService; this._divisionRepository = divisionRepository; }
private void Dispose(bool disposing) { if (!disposing) { return; } if (_dbContext == null) { return; } _dbContext.Dispose(); _dbContext = null; _profileRepository = null; _accountRepository = null; _teacherRepository = null; _classGroupRepository = null; _classRoomRepository = null; _courseRepository = null; _divisionRepository = null; _organizationRepository = null; _semesterRepository = null; _subjectGroupRepository = null; _subjectRepository = null; _buildingRepository = null; _roomRepository = null; _teacherDivisionRepository = null; _classTimetableRepository = null; _TimetableRepository = null; _courseSectionRepository = null; _schedulingTableRepository = null; _courseSubjectRepository = null; _trainingProgramRepository = null; _messagingDataMappingRepository = null; _messagingMessageRepository = null; _messagingTemplateContentRepository = null; _messagingTemplateRepository = null; _messagingTypeRepository = null; }
public RosterService(ISummonerMapper summonerMapper, ISummonerInfoRepository summonerInfoRepository, ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository, ITeamCaptainRepository teamCaptainRepository, ISeasonInfoRepository seasonInfoRepository, IDivisionRepository divisionRepository, IPlayerStatsRepository playerStatsRepository, IPlayerStatsMapper playerStatsMapper, IAlternateAccountRepository alternateAccountRepository, IMatchDetailRepository matchDetailRepository, ISummonerRoleMapper roleMapper, IMatchMvpRepository matchMvpRepository, IScheduleRepository scheduleRepository, IScheduleMapper scheduleMapper) { _summonerMapper = summonerMapper ?? throw new ArgumentNullException(nameof(summonerMapper)); _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository)); _teamPlayerRepository = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _teamCaptainRepository = teamCaptainRepository ?? throw new ArgumentNullException(nameof(teamCaptainRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository)); _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); _playerStatsRepository = playerStatsRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository)); _playerStatsMapper = playerStatsMapper ?? throw new ArgumentNullException(nameof(playerStatsMapper)); _alternateAccountRepository = alternateAccountRepository ?? throw new ArgumentNullException(nameof(alternateAccountRepository)); _matchDetailRepository = matchDetailRepository ?? throw new ArgumentNullException(nameof(matchDetailRepository)); _roleMapper = roleMapper ?? throw new ArgumentNullException(nameof(roleMapper)); _matchMvpRepository = matchMvpRepository ?? throw new ArgumentNullException(nameof(matchMvpRepository)); _scheduleRepository = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository)); _scheduleMapper = scheduleMapper ?? throw new ArgumentNullException(nameof(scheduleMapper)); }
public DivisionService(IDivisionRepository divisionRepository, IDivisionFormToEntityMapper formToEntityMapper) { _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); _formToEntityMapper = formToEntityMapper ?? throw new ArgumentNullException(nameof(formToEntityMapper)); }
public TeamRepository(IDatabaseFactory databaseFactory, IDivisionRepository divisionRepository) : base(databaseFactory) { _divisionRepository = divisionRepository; }
/// <summary> /// 构造函数 /// </summary> /// <param name="_db">注入数据仓库</param> public DivisionController(IDivisionRepository _db) { _repository = _db; }
public ApplicationEmpleados(IEmpleadoRepository repositoryEmpleados, IDivisionRepository repositoryDivision) { _repositoryEmpleados = repositoryEmpleados; _repositoryDivison = repositoryDivision; }
public DivisionManager(IDivisionRepository divisionRepository) : base(divisionRepository) { this._iDivisionRepository = divisionRepository; }
public DivisionManager() : base(new DivisionRepository()) { this._iDivisionRepository = (DivisionRepository)base.BaseRepository; }
public DivisionService(IDivisionRepository divisionRepository, IUnitOfWork unitOfWork) { this.divisionRepository = divisionRepository; this.unitOfWork = unitOfWork; }
public DbInitializer(DivisionDataConext context, IDivisionRepository divisionRepository, IScheduleRepository scheduleRepository) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); this.scheduleRepository = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository)); }
public DivisionService(IDivisionRepository repository) { this.repository = repository; }
public DivisionsController(IDivisionRepository divisionRepository) { _divisionRepository = divisionRepository; }
public AircraftTypesController(IDivisionRepository divisionRepository, IAircraftTypeRepository aircrafttypeRepository) { this.divisionRepository = divisionRepository; this.aircrafttypeRepository = aircrafttypeRepository; }
public DivisionController(IDivisionRepository divisionRepository) { _divisionRepository = divisionRepository; }
public DivisionService(IDivisionRepository _divisionRepository, IDivisionValidator _divisionValidator) { _repository = _divisionRepository; _validator = _divisionValidator; }
/// <summary> /// Empty constructor /// </summary> public DivController() { repository = new DivisionRepository(); }
public DivisionService(IDivisionRepository divRepository) : base(divRepository) { _divRepository = divRepository; }
public DivisionsController(IDivisionRepository divisionRepository) { this.divisionRepository = divisionRepository; }