コード例 #1
0
 public DivisionService(IDivisionQueryService divisionQueryService, IWizardRepository wizardRepository, ITransactionRepository transactionRepository, IDivisionRepository divisionRepository)
 {
     this._divisionQueryService  = divisionQueryService;
     this._wizardRepository      = wizardRepository;
     this._transactionRepository = transactionRepository;
     this._divisionRepository    = divisionRepository;
 }
コード例 #2
0
 public DivisionAppService(IUnitOfWorkManager uowManager,
                           IDivisionRepository divisionRepository,
                           IDivisionPolicy divisionPolicy)
 {
     UowManager         = uowManager;
     DivisionRepository = divisionRepository;
     DivisionPolicy     = divisionPolicy;
 }
コード例 #3
0
 public DivisionService(IDivisionRepository divisionRepository)
 {
     if (divisionRepository == null)
     {
         throw new ArgumentNullException("DivisionRepository");
     }
     this.divisionRepository = divisionRepository;
 }
コード例 #4
0
        public DivisionModule(IDivisionRepository divisionRepository, IMemberRepository memberRepository)
            : base("smack/divisions")
        {
            _divisionRepository = divisionRepository;
            _memberRepository = memberRepository;

            Get["/"] = x => GetAllDivisions();
            Get["/{id}/members"] = x => GetMembers(x.id);
        }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 public TournamentService(
     ITournamentRepository tournamentRepository,
     IRaceRepository raceRepository,
     ITeamRepository teamRepository,
     IDivisionRepository divisionRepository)
 {
     _tournamentRepository = tournamentRepository;
     _raceRepository       = raceRepository;
     _teamRepository       = teamRepository;
     _divisionRepository   = divisionRepository;
 }
コード例 #9
0
 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;
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
 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;
 }
コード例 #12
0
 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));
 }
コード例 #13
0
        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);
        }
コード例 #14
0
 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));
 }
コード例 #15
0
 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;
 }
コード例 #16
0
 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;
        }
コード例 #18
0
 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));
 }
コード例 #19
0
 public DivisionService(IDivisionRepository divisionRepository, IDivisionFormToEntityMapper formToEntityMapper)
 {
     _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository));
     _formToEntityMapper = formToEntityMapper ?? throw new ArgumentNullException(nameof(formToEntityMapper));
 }
コード例 #20
0
 public TeamRepository(IDatabaseFactory databaseFactory,
                       IDivisionRepository divisionRepository) : base(databaseFactory)
 {
     _divisionRepository = divisionRepository;
 }
コード例 #21
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_db">注入数据仓库</param>
 public DivisionController(IDivisionRepository _db)
 {
     _repository = _db;
 }
コード例 #22
0
 public ApplicationEmpleados(IEmpleadoRepository repositoryEmpleados,
                             IDivisionRepository repositoryDivision)
 {
     _repositoryEmpleados = repositoryEmpleados;
     _repositoryDivison   = repositoryDivision;
 }
コード例 #23
0
 public DivisionManager(IDivisionRepository divisionRepository) : base(divisionRepository)
 {
     this._iDivisionRepository = divisionRepository;
 }
コード例 #24
0
 public DivisionManager() : base(new DivisionRepository())
 {
     this._iDivisionRepository = (DivisionRepository)base.BaseRepository;
 }
コード例 #25
0
 public DivisionService(IDivisionRepository divisionRepository, IUnitOfWork unitOfWork)
 {
     this.divisionRepository = divisionRepository;
     this.unitOfWork         = unitOfWork;
 }
コード例 #26
0
 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));
 }
コード例 #27
0
 public DivisionService(IDivisionRepository repository)
 {
     this.repository = repository;
 }
コード例 #28
0
 public TeamRepository(IDatabaseFactory databaseFactory,
     IDivisionRepository divisionRepository) : base(databaseFactory)
 {
     _divisionRepository = divisionRepository;
 }
コード例 #29
0
 public DivisionsController(IDivisionRepository divisionRepository)
 {
     _divisionRepository = divisionRepository;
 }
コード例 #30
0
 public AircraftTypesController(IDivisionRepository divisionRepository, IAircraftTypeRepository aircrafttypeRepository)
 {
     this.divisionRepository = divisionRepository;
     this.aircrafttypeRepository = aircrafttypeRepository;
 }
コード例 #31
0
 public DivisionController(IDivisionRepository divisionRepository)
 {
     _divisionRepository = divisionRepository;
 }
コード例 #32
0
ファイル: DivisionService.cs プロジェクト: usruk/AttPayroll
 public DivisionService(IDivisionRepository _divisionRepository, IDivisionValidator _divisionValidator)
 {
     _repository = _divisionRepository;
     _validator  = _divisionValidator;
 }
コード例 #33
0
ファイル: DivController.cs プロジェクト: leojg519/Calculator
 /// <summary>
 /// Empty constructor
 /// </summary>
 public DivController()
 {
     repository = new DivisionRepository();
 }
コード例 #34
0
 public DivisionService(IDivisionRepository divRepository) : base(divRepository)
 {
     _divRepository = divRepository;
 }
コード例 #35
0
 public DivisionsController(IDivisionRepository divisionRepository)
 {
     this.divisionRepository = divisionRepository;
 }