public SeasonController( ISeasonRepository seasonRepository, IOrganizationRepository organizationRepository) { _seasonRepository = seasonRepository; _organizationRepository = organizationRepository; }
public SeasonEventHandler( IMapper mapper, ISeasonRepository repo) { _mapper = mapper; _seasonRepo = repo; }
public Statistician(IRaceRepository raceRepository, ISeasonRepository seasonRepository, IDriverRepository driverRepository, IDriverContractRepository contractRepository) { _raceRepository = raceRepository; _seasonRepository = seasonRepository; _driverRepository = driverRepository; _contractRepository = contractRepository; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _seasonRepository = new SeasonRepository(); _statistician = new CachedStatistician(); }
public Seed(UserManager <User> userManager, RoleManager <Role> roleManager, IUnitOfWork unitOfWork, ISeasonRepository seasonRepository, IStadiumRepository stadiumRepository, IClubRepository clubRepository, ISquadRepository squadRepository, IKitRepository kitRepository, IManagerRepository managerRepository, IPlayerRepository playerRepository) { _userManager = userManager; _roleManager = roleManager; _unitOfWork = unitOfWork; _seasonRepository = seasonRepository; _stadiumRepository = stadiumRepository; _clubRepository = clubRepository; _squadRepository = squadRepository; _kitRepository = kitRepository; _managerRepository = managerRepository; _playerRepository = playerRepository; _jsonSerializerSettings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Ignore }; }
/// <summary> /// Constructor /// </summary> /// <returns></returns> public GenerateLeagueController(ILeagueRepository leagueRepository, ISeasonRepository seasonRepository, ITeamRepository teamRepository, ICountryRepository countryRepository) { this.leagueRepository = leagueRepository; this.seasonRepository = seasonRepository; this.teamRepository = teamRepository; this.countryRepository = countryRepository; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _circuitRepository = new CircuitRepository(); _seasonRepository = new SeasonRepository(); }
/// <summary> /// Initializes a new instance of the <see cref="SeasonsController"/> class. /// </summary> /// <param name="seasonRepository">The repository by which season data will be accessed.</param> /// <param name="sharedRepository">The repository by which shared data resources will be accessed.</param> /// <param name="mapper">The AutoMapper object used for object-object mapping.</param> /// <param name="linkGenerator">The <see cref="LinkGenerator"/> object used to generate URLs.</param> public SeasonsController(ISeasonRepository seasonRepository, ISharedRepository sharedRepository, IMapper mapper, LinkGenerator linkGenerator) { _seasonRepository = seasonRepository; _sharedRepository = sharedRepository; _mapper = mapper; _linkGenerator = linkGenerator; }
public SeasonService(IActionHandler handler, ISeasonRepository seasonRepository, SeasonDTOMapper seasonMapper, SeasonFactory seasonFactory, ITelemetryEventService telemetry) : base(handler) { _seasonRepository = seasonRepository; _seasonMapper = seasonMapper; _seasonFactory = seasonFactory; _telemetry = telemetry; }
public CascadingDeleteService(ILeagueRepository leagueRepository, ISeasonRepository seasonRepository, IMatchRepository matchRepository, IMatchdayRepository matchdayRepository, ITeamRepository teamRepository) { this.leagueRepository = leagueRepository; this.seasonRepository = seasonRepository; this.matchRepository = matchRepository; this.matchdayRepository = matchdayRepository; this.teamRepository = teamRepository; }
/// <summary> /// Initializes a new instance of the <see cref="SeasonStandingsController"/> class. /// </summary> /// <param name="seasonStandingsIndexViewModel"> /// The <see cref="ISeasonStandingsIndexViewModel"/> by which data will be modeled for the season standings /// index view. /// </param> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> by which season data will be accessed. /// </param> /// <param name="seasonStandingsRepository"> /// The <see cref="ISeasonStandingsRepository"/> by which season standings data will be accessed. /// </param> public SeasonStandingsController( ISeasonStandingsIndexViewModel seasonStandingsIndexViewModel, ISeasonRepository seasonRepository, ISeasonStandingsRepository seasonStandingsRepository) { _seasonStandingsIndexViewModel = seasonStandingsIndexViewModel; _seasonRepository = seasonRepository; _seasonStandingsRepository = seasonStandingsRepository; }
/// <summary> /// Constructor of Show manager /// </summary> /// <param name="showRepository"></param> /// <param name="channelRepository"></param> /// <param name="genreRepository"></param> /// <param name="seasonRepository"></param> /// <param name="episodeRepository"></param> public ShowManager(IShowRepository showRepository, IChannelRepository channelRepository, IGenreRepository genreRepository, ISeasonRepository seasonRepository, IEpisodeRepository episodeRepository) { _showRepository = showRepository; _channelRepository = channelRepository; _genreRepository = genreRepository; _seasonRepository = seasonRepository; _episodeRepository = episodeRepository; }
public SeasonController( ICommandSender commandSender, IMapper mapper, ISeasonRepository seasonRepo) { _commandSender = commandSender; _mapper = mapper; _seasonRepo = seasonRepo; }
public CreateSeasonSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext, AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ICompetitionDataSource competitionDataSource, ISeasonRepository seasonRepository, IAuthorizationPolicy <Competition> authorizationPolicy) : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper) { _competitionDataSource = competitionDataSource ?? throw new ArgumentNullException(nameof(competitionDataSource)); _seasonRepository = seasonRepository ?? throw new System.ArgumentNullException(nameof(seasonRepository)); _authorizationPolicy = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy)); }
public void SetUp() { _raceRepository = MockRepository.GenerateMock<IRaceRepository>(); _seasonRepository = MockRepository.GenerateMock<ISeasonRepository>(); _driverRepository = MockRepository.GenerateMock<IDriverRepository>(); _contractRepository = MockRepository.GenerateMock<IDriverContractRepository>(); _statistician = new Statistician(_raceRepository, _seasonRepository, _driverRepository, _contractRepository); }
public async Task <Season> FetchSeasonAsync(DateTime currentDate, ISeasonRepository repository) { _logger.LogBusinessCase(BusinessTasks.FetchLastSeason); _logger.LogInput(BusinessTasks.FetchLastSeason, "Dnešný dátum", currentDate); var season = await repository.FetchSeason(currentDate).ConfigureAwait(false); _logger.LogOutput(BusinessTasks.FetchLastSeason, "Aktualna sezona", season); return(season); }
public CompetitionRepository(ISeasonRepository seasonRepository, ILeagueRepository leagueRepository, ITeamLeagueRepository teamLeagueRepository, IFixtureRepository fixtureRepository) { this.seasonRepository = seasonRepository; this.leagueRepository = leagueRepository; this.teamLeagueRepository = teamLeagueRepository; this.fixtureRepository = fixtureRepository; }
public ActivityFactory( IInfectionRepository infectionRepository, IShiftRepository shiftRepository, IServiceProviderRepository serviceProviderRepository, IProductRepository productRepository, IServiceRepository serviceRepository, ISeasonRepository seasonRepository, ICommodityRepository commodityRepository) { _infectionRepository = infectionRepository; _shiftRepository = shiftRepository; _serviceProviderRepository = serviceProviderRepository; _productRepository = productRepository; _serviceRepository = serviceRepository; _seasonRepository = seasonRepository; _commodityRepository = commodityRepository; }
public EditSeasonResultsTableSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext, AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ISeasonDataSource seasonDataSource, ISeasonRepository seasonRepository, IAuthorizationPolicy <Competition> authorizationPolicy, IPostSaveRedirector postSaveRedirector) : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper) { _seasonDataSource = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource)); _seasonRepository = seasonRepository ?? throw new ArgumentNullException(nameof(seasonRepository)); _authorizationPolicy = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy)); _postSaveRedirector = postSaveRedirector ?? throw new ArgumentNullException(nameof(postSaveRedirector)); }
public IntegrationServiceMock (IWorkOrderRepository workOrderRepository = null, ILogService loggerService = null, IUnitOfWork unitOfWork = null, IUserRepository iUserRepository = null, IActivityTypeActivityStatusRepository activityTypeActivityStatusRepository = null, IWorkOrderTransactionRepositry iBillingWorkOrderTransactionRepositry = null, IVendorRepository iVendorRepository = null, IGraphicHeaderRepository iGraphicHeaderRepository = null, ICostCenterRepository iCostCenterRepository = null, IBudgetByCategoryRollupRepository iBudgetByCategoryRollupRepository = null, IDeliverableRepository iDeliverableRepository = null, IWorkOrderVendorRepository iWorkOrderVendorRepository = null, // IActivityRepository iActivityRepository, ITrackActivityElementRepository iTrackActivityElementRepository = null, ITitleRepository iTitleRepository = null, ISeasonRepository iSeasonRepository = null, ISeriesRepository iSeriesRepository = null, ITitleCategoryRepository iTitleCategoryRepository = null, IPremiereCategoryRepository iPremiereCategoryRepository = null, IScheduleRepository iScheduleRepository = null, // ITrackActivityHeaderRepository iTrackActivityHeaderRepository, IDeliverableStatusRepository iDeliverableStatusRepository = null, IScriptRepository iScriptRepository = null, IInternalRepository iInternalRepository = null, //Contract Request - EDMX fix // IContractRequestHeaderRepository iContractRequestHeaderRepository = null, // IContractRequestLineRepository iContractRequestLineRepository = null, IContentPlanRepository iContentPlanRepository = null, IContentPlanEventRepository iContentPlanEventRepository = null, IContentPlanEventDatesRepository iContentPlanEventDatesRepository = null, IContentPlanEventScheduleRepository iContentPlanEventScheduleRepository = null, IApprovalRepository iApprovalRepository = null, IApprovalStatusRepository iApprovalStatusRepository = null, IApprovalTypeRepository iApprovalTypeRepository = null, ICalendarRepository iCalendarRepository = null, IDeliverableBudgetRepository iDeliverableBudgetRepository = null, IWBSFiscalYear_ChannelRepository iWBSFiscalYear_ChannelRepository = null, ITypeOfWorkRepository iTypeOfWorkRepository = null, IInvoiceLineRepository iInvoiceLineRepository = null, IInvoiceHeaderRepository iInvoiceHeaderRepository = null, //Contract Request - EDMX fix IWorkOrderType_Channel_WorkOrderVendorRepository iWorkOrderType_Channel_WorkOrderVendorRepository = null, IWBSElementRepository _IWBSElementRepository = null) : base( workOrderRepository, loggerService, unitOfWork, iUserRepository, activityTypeActivityStatusRepository, iBillingWorkOrderTransactionRepositry, iVendorRepository, iGraphicHeaderRepository, iCostCenterRepository, iBudgetByCategoryRollupRepository, iDeliverableRepository, iWorkOrderVendorRepository, iTrackActivityElementRepository, iTitleRepository, iSeasonRepository, iSeriesRepository, iTitleCategoryRepository, iPremiereCategoryRepository, iScheduleRepository, iDeliverableStatusRepository, iScriptRepository, iInternalRepository, /*iContractRequestHeaderRepository,*///Contract Request - EDMX fix /*iContractRequestLineRepository,*/ iContentPlanRepository, iContentPlanEventRepository, iContentPlanEventDatesRepository, iContentPlanEventScheduleRepository, iApprovalRepository, iApprovalStatusRepository, iApprovalTypeRepository, iCalendarRepository, iDeliverableBudgetRepository, iWBSFiscalYear_ChannelRepository, iTypeOfWorkRepository, iInvoiceLineRepository, iInvoiceHeaderRepository, iWorkOrderType_Channel_WorkOrderVendorRepository, _IWBSElementRepository) { }
/// <summary> /// Initializes a new instance of the <see cref="SeasonsController"/> class. /// </summary> /// <param name="seasonsIndexViewModel"> /// The <see cref="ISeasonsIndexViewModel"/> that will provide ViewModel data to the Index view. /// </param> /// <param name="seasonsDetailsViewModel"> /// The <see cref="ISeasonsDetailsViewModel"/> that will provide ViewModel data to the Details view. /// </param> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> by which season data will be accessed. /// </param> /// <param name="sharedRepository"> /// The <see cref="ISharedRepository"/> by which shared data resources will be accessed. /// </param> public SeasonsController( ISeasonsIndexViewModel seasonsIndexViewModel, ISeasonsDetailsViewModel seasonsDetailsViewModel, ISeasonRepository seasonRepository, ISharedRepository sharedRepository) { _seasonsIndexViewModel = seasonsIndexViewModel; _seasonsDetailsViewModel = seasonsDetailsViewModel; _seasonRepository = seasonRepository; _sharedRepository = sharedRepository; }
/// <summary> /// Initializes a new instance of the <see cref="GamePredictorWindowViewModel"/> class. /// </summary> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="teamSeasonRepository"> /// The <see cref="ITeamSeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="gamePredictorService"> /// The <see cref="IGamePredictorService"/> object used to calculate predicted game scores. /// </param> /// <param name="messageBoxService"> /// A <see cref="IMessageBoxService"/> object to show message boxes. /// </param> public GamePredictorWindowViewModel( ISeasonRepository seasonRepository, ITeamSeasonRepository teamSeasonRepository, IGamePredictorService gamePredictorService, IMessageBoxService messageBoxService) { _seasonRepository = seasonRepository; _teamSeasonRepository = teamSeasonRepository; _gamePredictorService = gamePredictorService; _messageBoxService = messageBoxService; }
protected override void OnInit(EventArgs e) { base.OnInit(e); _repository = new SeasonRepository(); ImageButton save = Panel1.Menu.NewImageButton(); save.ImageUrl = umbraco.GlobalSettings.Path + "/images/editor/save.gif"; save.AlternateText = "Save"; save.Click += new ImageClickEventHandler(SaveRecord); }
public RaceController( IPointRepository pointRepository, IRaceRepository raceRepository, ISeasonRepository seasonRepository, IOrganizationRepository organizationRepository) { _pointRepository = pointRepository; _raceRepository = raceRepository; _seasonRepository = seasonRepository; _organizationRepository = organizationRepository; }
/// <summary> /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class. /// </summary> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> object by which season data will be accessed. /// </param> /// <param name="gamesWindowFactory"> /// The <see cref="IGamesWindowFactory"/> object by which the attached games window will be created. /// </param> /// <param name="gamePredictorWindowFactory"> /// The <see cref="IGamePredictorWindowFactory"/> object by which the attached game predictor window will be /// created. /// </param> /// <param name="weeklyUpdateService"> /// The <see cref="IWeeklyUpdateService"/> object that will run the weekly update. /// </param> public MainWindowViewModel( ISeasonRepository seasonRepository, IGamesWindowFactory gamesWindowFactory, IGamePredictorWindowFactory gamePredictorWindowFactory, IWeeklyUpdateService weeklyUpdateService) { _seasonRepository = seasonRepository; _gamesWindowFactory = gamesWindowFactory; _gamePredictorWindowFactory = gamePredictorWindowFactory; _weeklyUpdateService = weeklyUpdateService; }
public SeasonsController(ISeasonRepository seasonRepository, IRoomRateRepository roomRateRepository, IRoomRepository roomRepository, IMealRateRepository mealRateRepository, IMealRepository mealRepository) { _seasonRepository = seasonRepository; _roomRateRepository = roomRateRepository; _roomRepository = roomRepository; _mealRateRepository = mealRateRepository; _mealRepository = mealRepository; }
public CreateCompetitionCommandHandler(IUnitOfWork unitOfWork, ISeasonRepository seasonRepository, ICompetitionHeaderRepository competitionHeaderRepository, ICompetitionRepository competitionRepository, IGameVariationRepository gameVariationRepository, CreateCompetitionCommandValidator validator, IClubRepository clubRepository) { this._unitOfWork = unitOfWork; this._competitionHeaderRepository = competitionHeaderRepository; this._competitionRepository = competitionRepository; this._seasonRepository = seasonRepository; this._gameVariationRepository = gameVariationRepository; this._validator = validator; this._clubRepository = clubRepository; }
public GetSeasonSummariesQueryHandler( ISeasonRepository seasonRepository, IAnimeRepository animeRepository, ISeasonRoleRepository roleRepository, ISeasonSearchCriteriaService seasonSearchCriteriaService ) { _seasonRepository = seasonRepository; _animeRepository = animeRepository; _seasonRoleRepository = roleRepository; _seasonSearchCriteriaService = seasonSearchCriteriaService; }
/// <summary> /// Initializes a new instance of the <see cref="GamesWindowViewModel"/> class. /// </summary> /// <param name="gameRepository">The <see cref="IGameRepository"/> by which game data will be accessed.</param> /// <param name="seasonRepository"> /// The <see cref="ISeasonRepository"/> by which season data will be accessed. /// </param> /// <param name="gameService"> /// The <see cref="IGameService"/> object that will process game data in the data store. /// </param> /// <param name="gameFinderWindowFactory"> /// The <see cref="IGamesWindowFactory"/> that will create instances of the /// <see cref="IGameFinderWindow"/> interface. /// </param> /// <param name="messageBoxService">The service that will display message boxes.</param> public GamesWindowViewModel( IGameRepository gameRepository, ISeasonRepository seasonRepository, IGameService gameService, IGameFinderWindowFactory gameFinderWindowFactory, IMessageBoxService messageBoxService) { _gameRepository = gameRepository; _seasonRepository = seasonRepository; _gameService = gameService; _gameFinderWindowFactory = gameFinderWindowFactory; _messageBoxService = messageBoxService; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, ISeasonRepository seasonRepository) { _seasonRepository = seasonRepository; _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; }
public SqlServerCompetitionRepository(IDatabaseConnectionFactory databaseConnectionFactory, IAuditRepository auditRepository, ILogger logger, ISeasonRepository seasonRepository, IRouteGenerator routeGenerator, IRedirectsRepository redirectsRepository, IHtmlSanitizer htmlSanitiser, IStoolballEntityCopier copier, IUrlFormatter urlFormatter, ISocialMediaAccountFormatter socialMediaAccountFormatter) { _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory)); _auditRepository = auditRepository ?? throw new ArgumentNullException(nameof(auditRepository)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _seasonRepository = seasonRepository ?? throw new ArgumentNullException(nameof(seasonRepository)); _routeGenerator = routeGenerator ?? throw new ArgumentNullException(nameof(routeGenerator)); _redirectsRepository = redirectsRepository ?? throw new ArgumentNullException(nameof(redirectsRepository)); _htmlSanitiser = htmlSanitiser ?? throw new ArgumentNullException(nameof(htmlSanitiser)); _copier = copier ?? throw new ArgumentNullException(nameof(copier)); _urlFormatter = urlFormatter ?? throw new ArgumentNullException(nameof(urlFormatter)); _socialMediaAccountFormatter = socialMediaAccountFormatter ?? throw new ArgumentNullException(nameof(socialMediaAccountFormatter)); }
public HomeController(IRoomRateRepository roomRateRepository, IMealRateRepository mealRateRepository, IRoomRepository roomRepository, IMealRepository mealRepository, ISeasonRepository seasonRepository, IReservationRepository reservationRepository) { _roomRateRepository = roomRateRepository; _mealRateRepository = mealRateRepository; _roomRepository = roomRepository; _mealRepository = mealRepository; _seasonRepository = seasonRepository; _reservationRepository = reservationRepository; }
public TeamUseCase( ITeamRepository teamRepository, IAuthorizationLinkRepository authorizationLinkRepository, IRequestTeamRepository requestTeamRepository, IReservationNumberRepository reservationNumberRepository, ISeasonRepository seasonRepository, IMailSender mailSender) { this.teamRepository = teamRepository; this.authorizationLinkRepository = authorizationLinkRepository; this.requestTeamRepository = requestTeamRepository; this.reservationNumberRepository = reservationNumberRepository; this.seasonRepository = seasonRepository; this.mailSender = mailSender; }
public PlayerUseCase( IMailSender mailSender, IPlayerRepository playerRepository, IRequestPlayerRepository requestPlayerRepository, IReservationNumberRepository reservationNumberRepository, ISeasonRepository seasonRepository, ITeamRepository teamRepository) { this.mailSender = mailSender; this.playerRepository = playerRepository; this.requestPlayerRepository = requestPlayerRepository; this.reservationNumberRepository = reservationNumberRepository; this.seasonRepository = seasonRepository; this.teamRepository = teamRepository; }
public MatchService(IUnitOfWork unitOfWork, ISeasonRepository seasonRepository, IClubRepository clubRepository, ISquadRepository squadRepository, IKitRepository kitRepository, IMatchRepository matchRepository, IGoalRepository goalRepository ) { _unitOfWork = unitOfWork; _seasonRepository = seasonRepository; _clubRepository = clubRepository; _squadRepository = squadRepository; _kitRepository = kitRepository; _matchRepository = matchRepository; _goalRepository = goalRepository; }
/// <summary> /// Initializes a new instance of the <see cref="WeeklyUpdateService"/> class. /// </summary> /// <param name="seasonRepository">The repository by which WeekCount data will be accessed.</param> /// <param name="gameRepository">The repository by which Game data will be accessed.</param> /// <param name="leagueSeasonRepository">The repository by which LeagueSeason data will be accessed.</param> /// <param name="leagueSeasonTotalsRepository">The repository by which LeagueSeasonTotals data will be accessed.</param> /// <param name="teamSeasonRepository">The repository by which TeamSeason data will be accessed.</param> /// <param name="teamSeasonScheduleTotalsRepository">The repository by which TeamSeasonScheduleTotals data will be accessed.</param> /// <param name="teamSeasonScheduleAveragesRepository">The repository by which TeamSeasonScheduleAverages data will be accessed.</param> /// <param name="sharedRepository">The repository by which data will be accessed.</param> public WeeklyUpdateService( ISeasonRepository seasonRepository, IGameRepository gameRepository, ILeagueSeasonRepository leagueSeasonRepository, ILeagueSeasonTotalsRepository leagueSeasonTotalsRepository, ITeamSeasonRepository teamSeasonRepository, ITeamSeasonScheduleRepository teamSeasonScheduleRepository, ISharedRepository sharedRepository) { _seasonRepository = seasonRepository; _gameRepository = gameRepository; _leagueSeasonRepository = leagueSeasonRepository; _leagueSeasonTotalsRepository = leagueSeasonTotalsRepository; _teamSeasonRepository = teamSeasonRepository; _teamSeasonScheduleRepository = teamSeasonScheduleRepository; _sharedRepository = sharedRepository; }
private XMLRepositoryFactory(string _filename) { filename = _filename; try { Document = XDocument.Load(filename); } //System.IO.DirectoryNotFoundException catch (System.IO.FileNotFoundException ex) { //Repository doesn't exist, so create a new baseline. Document = new XDocument( new XElement("Repository", new XElement("Config"), new XElement("Shows") ) ); Persist(); } configurationRepository = new XMLConfigurationRepository(this); //Initialize Show repository, with next ID from config string nextShowID = ConfigurationRepository.GetValue("NextShowID"); if (nextShowID == null || nextShowID.Equals("")) { ConfigurationRepository.SetValue("NextShowID", "1"); showRepository = new XMLShowRepository(this, 1); } else { showRepository = new XMLShowRepository(this, Convert.ToInt32(nextShowID)); } //Initialize Season repository, with next ID from config string nextSeasonID = ConfigurationRepository.GetValue("NextSeasonID"); if (nextSeasonID == null || nextSeasonID.Equals("")) { ConfigurationRepository.SetValue("NextSeasonID", "1"); seasonRepository = new XMLSeasonRepository(this, 1); } else { seasonRepository = new XMLSeasonRepository(this, Convert.ToInt32(nextSeasonID)); } //Initialize Season repository, with next ID from config string nextEpisodeID = ConfigurationRepository.GetValue("NextEpisodeID"); if (nextEpisodeID == null || nextEpisodeID.Equals("")) { ConfigurationRepository.SetValue("NextEpisodeID", "1"); episodeRepository = new XMLEpisodeRepository(this, 1); } else { episodeRepository = new XMLEpisodeRepository(this, Convert.ToInt32(nextEpisodeID)); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { _seasonRepository = new SeasonRepository(); var seasons = _seasonRepository.GetAll(); SeasonList.DataSource = seasons; SeasonList.DataValueField = "Id"; SeasonList.DataTextField = "Name"; SeasonList.DataBind(); var item = SeasonList.Items.FindByValue(_seasonId); if (item != null) item.Selected = true; } }
public SeasonService(ISeasonRepository repo) { seasonRepository = repo; }
private void CheckDependancies() { if (_statistician == null) _statistician = new CachedStatistician(); if (_driverRepository == null) _driverRepository = new DriverRepository(); if (_seasonRepository == null) _seasonRepository = new SeasonRepository(); }
//protected IBankRepository _bankRepository; //protected IBankBranchRepository _bankBranchRepository; #region Constructors public InsertTestData(IOutletVisitReasonsTypeRepository visitReasonsTypeRepository,IActivityTypeRepository activityTypeRepository,IContainerTypeRepository containerTypeRepository, IRetireDocumentSettingRepository retireDocumentSettingRepository, IOutletPriorityRepository outletPriorityRepository, IOutletVisitDayRepository outletVisitDayRepository, IAssetStatusRepository assetStatusRepository, IAssetCategoryRepository assetCategoryRepository, IUserGroupRepository userGroupRepository, IUserGroupRolesRepository userGroupRolesRepository, ISalesmanRouteRepository salesmanRouteRepository, IProductTypeRepository productTypeRepository, IProductBrandRepository productBrandRepository, IProductFlavourRepository productFlavourRepository, IProductPackagingRepository productPackagingRepository, IProductPackagingTypeRepository productPackagingTypeRepository, IProductRepository productRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IProductPricingRepository pricingRepository, IVATClassRepository vatClassRepository, IVATClassFactory vatClassFactory, ICountryRepository countryRepository, IProductPricingFactory productPricingFactory, IProductPricingTierRepository productPricingTierRepository, IOutletTypeRepository outletTypeRepository, IUserRepository userRepository, IOutletRepository outletRepository, IRouteRepository routeRepository, IRouteFactory routeFactory, ITransporterRepository transporterRepository, IProductFactory productFactory, IDistributorSalesmanRepository distributorSalesmanRepository, IProducerRepository producerRepository, IDocumentFactory documentFactory, ISocioEconomicStatusRepository socioEconomicStatusRepository, IClientMasterDataTrackerRepository clientMasterDataTrackerRepository, IDistributorRepository distributorrepository, IOutletCategoryRepository outletCategoryRepository, ITerritoryRepository territoryRepository, IAreaRepository areaRepository, IContactRepository contactRepository, IAccountRepository accountRepository, IAccountTransactionRepository accountTransactionRepository, IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository, ICostCentreApplicationRepository costCentreApplicationRepository, IChannelPackagingRepository channelPackagingRepository, ICompetitorRepository competitorRepository, ICompetitorProductsRepository competitorProductRepository, IAssetRepository coolerRepository, IAssetTypeRepository coolerTypeRepository, IDistrictRepository districtRepository, IProvincesRepository provinceRepository, IReOrderLevelRepository reorderLevelRepository, ITargetPeriodRepository targetPeriodRepository, ITargetRepository targetRepository, IProductDiscountFactory productDiscountFactory, IProductDiscountRepository productDiscountRepository, ISaleValueDiscountFactory saleValueDiscountFactory, ISaleValueDiscountRepository saleValueDiscountRepository, IBankRepository bankRepository, IBankBranchRepository bankBranchRepository, ISupplierRepository supplierRepository, ICreatePaymentNoteCommandHandler createLossCommandHandler, IAddPaymentNoteLineItemCommandHandler addLossLineItemCommandHandler, IConfirmPaymentNoteCommandHandler confirmLossCommandHandler, IContactTypeRepository contactTypeRepository, IDiscountGroupRepository discountGroupRepository, IProductDiscountGroupFactory productDiscountGroupFactory, ICertainValueCertainProductDiscountFactory certainValueCertainProductDiscountFactory, ICustomerDiscountFactory customerDiscountFactory, IPromotionDiscountFactory promotionDiscountFactory, IProductDiscountGroupRepository productDiscountGroupRepository, IPromotionDiscountRepository promotionDiscountRepository, IFreeOfChargeDiscountRepository freeOfChargeDiscountRepository, ICertainValueCertainProductDiscountRepository certainValueCertainProductDiscountRepository, ITargetItemRepository targetItemRepository, ISettingsRepository settingsRepository, ICentreRepository centreRepository, ICentreTypeRepository centreTypeRepository, ICommoditySupplierRepository commoditySupplierRepository, ICommodityOwnerTypeRepository commodityOwnerTypeRepository, ICommodityOwnerRepository commodityOwnerRepository, ICommodityProducerRepository commodityProducerRepository, ICommodityRepository commodityRepository, ICommodityTypeRepository commodityTypeRepository, IEquipmentRepository equipmentRepository, IMasterDataAllocationRepository masterDataAllocationRepository,IVehicleRepository vehicleRepository,IHubRepository hubRepository, IPurchasingClerkRouteRepository purchasingClerkRouteRepository,IInfectionRepository infectionRepository,ISeasonRepository seasonRepository,IServiceProviderRepository serviceProviderRepository,IServiceRepository serviceRepository,IShiftRepository shiftRepository,ISalesmanSupplierRepository salesmanSupplierRepository ) { _salesmanSupplierRepository = salesmanSupplierRepository; _productTypeRepository = productTypeRepository; _productBrandRepository = productBrandRepository; _productFlavourRepository = productFlavourRepository; _productPackagingRepository = productPackagingRepository; _productPackagingTypeRepository = productPackagingTypeRepository; _productRepository = productRepository; _regionRepository = regionRepository; _costCentreRepository = costCentreRepository; _costCentreFactory = costCentreFactory; _pricingRepository = pricingRepository; _vatClassRepository = vatClassRepository; _vatClassFactory = vatClassFactory; _countryRepository = countryRepository; _productPricingFactory = productPricingFactory; _ProductPricingTierRepository = productPricingTierRepository; _outletTypeRepository = outletTypeRepository; _userRepository = userRepository; _outletRepository = outletRepository; _routeRepository = routeRepository; _routeFactory = routeFactory; _transporterRepository = transporterRepository; _productFactory = productFactory; _distributorSalesmanRepository = distributorSalesmanRepository; _producerRepository = producerRepository; _documentFactory = documentFactory; _socioEconomicStatusRepository = socioEconomicStatusRepository; _clientMasterDataTrackerRepository = clientMasterDataTrackerRepository; _distributorrepository = distributorrepository; _outletCategoryRepository = outletCategoryRepository; //_createOrderCommandHandler = createOrderCommandHandler; _territoryRepository = territoryRepository; _areaRepository = areaRepository; _contactRepository = contactRepository; _accountRepository = accountRepository; _accountTransactionRepository = accountTransactionRepository; _inventoryRepository = inventoryRepository; _inventoryTransactionRepository = inventoryTransactionRepository; _costCentreApplicationRepository = costCentreApplicationRepository; _channelPackagingRepository = channelPackagingRepository; _competitorRepository = competitorRepository; _competitorProductRepository = competitorProductRepository; _coolerRepository = coolerRepository; _coolerTypeRepository = coolerTypeRepository; _districtRepository = districtRepository; _provinceRepository = provinceRepository; _reorderLevelRepository = reorderLevelRepository; _targetPeriodRepository = targetPeriodRepository; _targetRepository = targetRepository; _productDiscountFactory = productDiscountFactory; _productDiscountRepository = productDiscountRepository; _saleValueDiscountFactory = saleValueDiscountFactory; _saleValueDiscountRepository = saleValueDiscountRepository; _salesmanRouteRepository = salesmanRouteRepository; _userGroupRepository = userGroupRepository; _userGroupRolesRepository = userGroupRolesRepository; _bankRepository = bankRepository; _bankBranchRepository = bankBranchRepository; _supplierRepository = supplierRepository; _createLossCommandHandler = createLossCommandHandler; _addLossLineItemCommandHandler = addLossLineItemCommandHandler; _confirmLossCommandHandler = confirmLossCommandHandler; _contactTypeRepository = contactTypeRepository; _assetCategoryRepository = assetCategoryRepository; _assetStatusRepository = assetStatusRepository; _discountGroupRepository = discountGroupRepository; _productDiscountGroupFactory = productDiscountGroupFactory; _certainValueCertainProductDiscountFactory = certainValueCertainProductDiscountFactory; _customerDiscountFactory = customerDiscountFactory; _promotionDiscountFactory = promotionDiscountFactory; _productDiscountGroupRepository = productDiscountGroupRepository; _promotionDiscountRepository = promotionDiscountRepository; _freeOfChargeDiscountRepository = freeOfChargeDiscountRepository; _certainValueCertainProductDiscountRepository = certainValueCertainProductDiscountRepository; _outletPriorityRepository = outletPriorityRepository; _outletVisitDayRepository = outletVisitDayRepository; _targetItemRepository = targetItemRepository; _settingsRepository = settingsRepository; _retireDocumentSettingRepository = retireDocumentSettingRepository; _commodityOwnerTypeRepository = commodityOwnerTypeRepository; _commodityOwnerRepository = commodityOwnerRepository; _commoditySupplierRepository = commoditySupplierRepository; _centreTypeRepository = centreTypeRepository; _centreRepository = centreRepository; _commodityProducerRepository = commodityProducerRepository; _commodityRepository = commodityRepository; _commodityTypeRepository = commodityTypeRepository; _equipmentRepository = equipmentRepository; _masterDataAllocationRepository = masterDataAllocationRepository; _containerTypeRepository = containerTypeRepository; _hubRepository = hubRepository; _vehicleRepository = vehicleRepository; _purchasingClerkRouteRepository = purchasingClerkRouteRepository; _ShiftRepository = shiftRepository; _SeasonRepository = seasonRepository; _ServiceProviderRepository = serviceProviderRepository; _ServiceRepository = serviceRepository; _InfectionRepository = infectionRepository; _activityTypeRepository = activityTypeRepository; _outletVisitReasonsTypeRepository = visitReasonsTypeRepository; }
public AdminService(ISeasonRepository seasonRepository, ISeasonWeekRepository seasonWeekRepository, IRealWorldFixtureRepository realWorldFixtureRepository) { _seasonRepository = seasonRepository; _seasonWeekRepository = seasonWeekRepository; _realWorldFixtureRepository = realWorldFixtureRepository; }
public loadSeasonTemplates(string application) : base(application) { _repository = new SeasonRepository(); }
public SeasonService(ISeasonRepository seasonRepository) { _seasonRepository = seasonRepository; }
public SeasonService() { _seasonRepository = new SeasonRepository(new ConnectionStringProvider()); }
public seasonTemplateTasks() { _repository = new SeasonRepository(); }
public SeasonService(ISeasonRepository SeasonRepository) { this.SeasonRepository = SeasonRepository; }
public loadResults(string application) : base(application) { _seasonRepository = new SeasonRepository(); }
public SeasonManager(ISeasonRepository repository) { _repository = repository; }
public seasonRaceTasks() { _repository = new SeasonRepository(); }
public PredsAssociationService(IPredsAssociationRepository predsAssocationRepository, ISeasonRepository seasonRepisotry) { _predsAssociationRepository = predsAssocationRepository; _seasonRepository = seasonRepisotry; }
public SeasonController(IDTOToEntityMapping dtoToEntityMapping, IMasterDataToDTOMapping masterDataToDtoMapping, CokeDataContext context, ISeasonRepository seasonRepository, ICommodityProducerRepository commodityProducerRepository) : base(dtoToEntityMapping, masterDataToDtoMapping, context) { _seasonRepository = seasonRepository; _commodityProducerRepository = commodityProducerRepository; }