public TitlesController(ITitleService titleService, IRentalHistoryService rentalHistoryService, ISettingsValueService settingsValueService, ITitleMetaValueService titleMetaValueService)
 {
     _titleService          = titleService;
     _rentalHistoryService  = rentalHistoryService;
     _settingsValueService  = settingsValueService;
     _titleMetaValueService = titleMetaValueService;
 }
Example #2
0
 public TitlesController(ITitleService titleService, IPersonService personService, ITitleRepository<Title> titleRepository, ITitleRepository<TitleCredit> titleCreditRepository)
 {
     this.titleService = titleService;
     this.personService = personService;
     this.titleRepository = titleRepository;
     this.titleCreditRepository = titleCreditRepository;
 }
Example #3
0
 /*Section="Constructor"*/
 public StoreController(
     ILoggerFactory loggerFactory,
     IStoreService storeService,
     ITitleService titleService)
     : base(loggerFactory, storeService)
 {
     _titleService = titleService;
 }
Example #4
0
 public AppraiserService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _appraisers = _unitOfWork.Set<Appraiser>();
     _titleService = titleService;
     _mappingEngine = mappingEngine;
 }
Example #5
0
 public titlesController(
     ITitleService titleService,
     IEmployeeService employeeService
     )
 {
     _titleService    = titleService;
     _employeeService = employeeService;
 }
 public TeacherInServiceCourseTypeService(IUnitOfWork unitOfWork,ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _TeacherInServiceCourseTypes = _unitOfWork.Set<TeacherInServiceCourseType>();
     _mappingEngine = mappingEngine;
     _titleService = titleService;
 }
Example #7
0
 public AnswerOptionService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _answerOptions = _unitOfWork.Set<AnswerOption>();
     _titleService = titleService;
     _mappingEngine = mappingEngine;
 }
Example #8
0
 public OperationsUI()
 {
     InitializeComponent();
     //_productManager = new ProductManager();
     _workerManager      = new WorkerManager();
     _titleManager       = new TitleManager();
     _departmantsManager = new DepartmantManager();
 }
Example #9
0
        //private readonly ICacheService _cacheService;

        //TODO: CACHE
        public UserService(DataContext dataContext, IOrganizationService organizationService, ITitleService titleService, IDepartmentService departmentService, IHostingEnvironment environment)
        {
            _dataContext         = dataContext;
            _organizationService = organizationService;
            _titleService        = titleService;
            _departmentService   = departmentService;
            _environment         = environment;
        }
 public EducationalExperienceService(IUnitOfWork unitOfWork, ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _titleService = titleService;
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _educationalExperiences = _unitOfWork.Set<EducationalExperience>();
     _mappingEngine = mappingEngine;
 }
Example #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HeaderViewModel"/> class.
        /// </summary>
        /// <param name="powerService">The power service implementation.</param>
        /// <param name="titleService">The title service.</param>
        /// <param name="policyProvider">The policy provider to execute ordinary commands.</param>
        /// <param name="navigationManager">The navigation manager to navigate to a different page.</param>
        public HeaderViewModel(
            IPowerService powerService,
            ITitleService titleService,
            ICommandPolicyProvider policyProvider,
            NavigationManager navigationManager)
        {
            if (powerService is null)
            {
                throw new ArgumentNullException(nameof(powerService));
            }

            if (titleService is null)
            {
                throw new ArgumentNullException(nameof(titleService));
            }

            if (policyProvider is null)
            {
                throw new ArgumentNullException(nameof(policyProvider));
            }

            if (navigationManager is null)
            {
                throw new ArgumentNullException(nameof(navigationManager));
            }

            this.WhenActivated(disposable =>
            {
                this.poweredOn = powerService.PoweredOn.ToProperty(this, x => x.PoweredOn).DisposeWith(disposable);
                this.title     = titleService.Title.ToProperty(this, x => x.Title).DisposeWith(disposable);
                var policy     = policyProvider.GetPolicy();

                this.TogglePower = ReactiveCommand.CreateFromTask(async(ct) =>
                {
                    switch (this.PoweredOn)
                    {
                    case true:
                        await policy.ExecuteAsync(
                            async(token) => await powerService.PowerOff(token),
                            ct);
                        break;

                    case false:
                        await policy.ExecuteAsync(
                            async(token) => await powerService.PowerOn(token),
                            ct);
                        break;
                    }
                }).DisposeWith(disposable);

                this.Settings = ReactiveCommand.Create(() =>
                {
                    navigationManager.NavigateTo("/Settings");
                }).DisposeWith(disposable);

                this.canExecuteTogglePower = this.TogglePower.CanExecute.ToProperty(this, x => x.CanExecuteTogglePower).DisposeWith(disposable);
            });
        }
        public HeaderViewModel(IEventAggregator eventAggregator, ITitleService titleService)
        {
            _eventAggregator = eventAggregator;
            _titleService    = titleService;

            Title = _titleService.GetMainTitle();

            ChangeTitleCommand = new DelegateCommand(ChangeTitleExecute);
        }
Example #13
0
 public SeasonService(ApplicationDbContext context,
                      ITitleService titleService,
                      IMapper mapper)
 {
     _context       = context;
     _titleService  = titleService;
     _seasonContext = _context.Seasons;
     _mapper        = mapper;
 }
Example #14
0
        public PersonType(ITitleService titleService)
        {
            Field(x => x.Id);
            Field(x => x.Name);
            Field(x => x.BirthDate);

            Field <ListGraphType <TitleType> >("movies",
                                               resolve: context => titleService.ListFromPersonId(context.Source.Id));
        }
Example #15
0
        private static void BuildTitleService()
        {
            var optionsBuilder = new DbContextOptionsBuilder <TitleContext>();

            optionsBuilder.UseSqlServer(_config["WtowConnectionString"]);
            var context = new TitleContext(optionsBuilder.Options);

            _titleService = new TitleService(context);
        }
 public WorkExperienceService(IUnitOfWork unitOfWork,ICityService cityService,IStateService stateService,ITitleService titleService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _workExperiences = _unitOfWork.Set<WorkExperience>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
     _titleService = titleService;
 }
 public EducationalBackgroundService(IUnitOfWork unitOfWork, ITitleService titleService,IInstitutionService institutionService,
     IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _educationalBackgrounds = _unitOfWork.Set<EducationalBackground>();
     _mappingEngine = mappingEngine;
     _titleService = titleService;
     _institutionService = institutionService;
 }
Example #18
0
        public ReviewType(ITitleService titleService)
        {
            Field(x => x.Id);
            Field(x => x.Score);
            Field(x => x.Text);
            Field(x => x.TitleId);
            Field(x => x.UserId);

            Field <TitleType>("title",
                              resolve: context => titleService.GetAsync(context.Source.TitleId));
        }
Example #19
0
 public EmplController(IEmplService service, ITitleService titleService, IProfileService profileService, ICompanyService companyService,
                       IDepartmentService departmentService, IAccountService accountService, IWorkScheduleService workScheduleService)
 {
     _Service             = service;
     _TitleService        = titleService;
     _ProfileService      = profileService;
     _CompanyService      = companyService;
     _DepartmentService   = departmentService;
     _AccountService      = accountService;
     _WorkScheduleService = workScheduleService;
 }
Example #20
0
 public HomeController(ILogger <HomeController> logger, IEmployeeService employeeService, IDepartmentService departmentService,
                       IDeptEmpService deptEmpService, IDeptManagerService deptManagerService, ISalaryService salaryService, ITitleService titleService
                       )
 {
     _logger             = logger;
     _employeeService    = employeeService;
     _departmentService  = departmentService;
     _deptEmpService     = deptEmpService;
     _deptManagerService = deptManagerService;
     _salaryService      = salaryService;
     _titleService       = titleService;
 }
Example #21
0
 public MovieService(ITitleService titleService,
                     ApplicationDbContext context,
                     IMapper mapper,
                     IWebHostEnvironment hostingEnvironment)
 {
     _titleService      = titleService;
     _context           = context;
     _mapper            = mapper;
     _movieContext      = _context.Movies;
     _movieVideoContext = _context.MovieVideos;
     wwwRoot            = hostingEnvironment.WebRootPath;
 }
Example #22
0
 public RatingService(ApplicationDbContext context,
                      ITitleService titleService,
                      UserManager <User> userManager,
                      IHttpContextAccessor httpContextAccessor)
 {
     _context        = context;
     _ratingContext  = context.Ratings;
     _profileContext = context.Profiles;
     _titleService   = titleService;
     _userManager    = userManager;
     _httpContext    = httpContextAccessor.HttpContext;
 }
 public StatisticController(ICategoryService categoryService,
                            IContentService contentService, IAboutService aboutService,
                            IAuthorService authorService, IContactService contactService,
                            ITitleService titleService)
 {
     _categoryService = categoryService;
     _contentService  = contentService;
     _aboutService    = aboutService;
     _authorService   = authorService;
     _contactService  = contactService;
     _titleService    = titleService;
 }
Example #24
0
 public TeacherController(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IReferentialTeacherService referentialTeacherService,
     ITrainingCenterService trainingCenterService, ITrainingCourseService trainingCourseService, ITitleService titleService,
     ITeacherService TeacherService, IStateService stateService, ICityService cityService)
 {
     _unitOfWork = unitOfWork;
     _userManager = userManager;
     _TeacherService = TeacherService;
     _stateService = stateService;
     _cityService = cityService;
     _trainingCenterService = trainingCenterService;
     _titleService = titleService;
     _referentialTeacherService = referentialTeacherService;
 }
Example #25
0
 public TitleController(ITitleService titleService,
                        ITitleRepository titleRepository,
                        ICurrentUser currentUser,
                        ICompanyRepository companyRepository,
                        IBuildingRepository buildingRepository,
                        IUserRepository userRepository,
                        ILogger logger)
     : base(currentUser, logger)
 {
     _companyRepository  = companyRepository;
     _titleRepository    = titleRepository;
     _buildingRepository = buildingRepository;
     _userRepository     = userRepository;
     _titleService       = titleService;
 }
Example #26
0
 public TeacherService(HttpContextBase httpContextBase, IUnitOfWork unitOfWork, IApplicationUserManager userManager, ITrainingCenterService trainingCenter, ITrainingCourseService trainingCourse,
     IMappingEngine mappingEngine, IReferentialTeacherService referentialTeacherService, ITitleService titleService, IStateService stateService, ICityService cityService
     )
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _Teachers = _unitOfWork.Set<Teacher>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
     _titleService = titleService;
     _httpContextBase = httpContextBase;
     _referentialTeacherService = referentialTeacherService;
     _trainingCenterService = trainingCenter;
     _trainingCourseService = trainingCourse;
 }
Example #27
0
 public DbSeeder(
     IWorldService worldService,
     IFactionService factionService,
     IItemService itemService,
     IZoneService zoneService,
     ITitleService titleService,
     IProfileService profileService
     )
 {
     _worldService   = worldService;
     _factionService = factionService;
     _itemService    = itemService;
     _zoneService    = zoneService;
     _titleService   = titleService;
     _profileService = profileService;
 }
Example #28
0
        private Guid TitleIntegration(string _title)
        {
            ITitleService _Titleservice = DependencyResolver.Current.GetService <ITitleService>();

            if (!_Titleservice.Contains(x => x.TitleName == _title))
            {
                _Titleservice.SaveDomain(new TitleTable()
                {
                    TitleName = _title, isIntegratedLDAP = true
                }, "Admin");
            }

            TitleTable titleTable = _Titleservice.FirstOrDefault(x => x.TitleName == _title);

            return(titleTable == null ? Guid.Empty : titleTable.Id);
        }
Example #29
0
 public AdminController(ITitleService titleService,
                        ISeasonService seasonService,
                        IEpisodeService episodeService,
                        IMovieService movieService,
                        IMapper mapper,
                        ILogger <AdminController> logger,
                        IMediaService mediaService,
                        IFfMpegProvider ffMpeg)
 {
     _titleService   = titleService;
     _seasonService  = seasonService;
     _episodeService = episodeService;
     _movieService   = movieService;
     _mapper         = mapper;
     _logger         = logger;
     _mediaService   = mediaService;
     _ffMpeg         = ffMpeg;
 }
Example #30
0
        private void AddTitleFields(ITitleService titleService)
        {
            Field <ListGraphType <TitleType> >("titles",
                                               arguments: new QueryArguments(new QueryArgument <IntGraphType> {
                Name = "first", DefaultValue = 10
            }),
                                               resolve: context =>
            {
                int first = context.GetArgument <int>("first");
                return(titleService.ListAsync(first));
            });

            Field <TitleType>("title",
                              arguments: new QueryArguments(new QueryArgument <StringGraphType> {
                Name = "id"
            }),
                              resolve: context =>
            {
                string id = context.GetArgument <string>("id");
                return(titleService.GetAsync(Guid.Parse(id).ToString()));
            });
        }
Example #31
0
 public BaseAdminModelFactory(IFacultyService facultyService,
                              ICountryService countryService,
                              IUserActivityService userActivityService,
                              IUserService userService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              IProfessorService professorService,
                              IProvinceService provinceService,
                              IStaticCacheManager cacheManager,
                              IAcademicRankService academicRankService,
                              IResearchIssueService researchIssueService,
                              IAgencyService agencyService,
                              IResearcherService researcherService,
                              IEducationLevelService educationLevelService,
                              IStrategyGroupService strategyGroupService,
                              IFiscalScheduleService fiscalScheduleService,
                              ITitleService titleService,
                              IInstituteService instituteService)
 {
     this._facultyService        = facultyService;
     this._countryService        = countryService;
     this._userActivityService   = userActivityService;
     this._userService           = userService;
     this._dateTimeHelper        = dateTimeHelper;
     this._emailAccountService   = emailAccountService;
     this._professorService      = professorService;
     this._provinceService       = provinceService;
     this._cacheManager          = cacheManager;
     this._academicRankService   = academicRankService;
     this._researchIssueService  = researchIssueService;
     this._agencyService         = agencyService;
     this._researcherService     = researcherService;
     this._educationLevelService = educationLevelService;
     this._strategyGroupService  = strategyGroupService;
     this._fiscalScheduleService = fiscalScheduleService;
     this._titleService          = titleService;
     this._instituteService      = instituteService;
 }
Example #32
0
 public TitleController(IUnitOfWork unitOfWork, ITitleService titleService)
 {
     _unitOfWork = unitOfWork;
     _titleService = titleService;
 }
 public MangaCreatedConsumer(ITitleService titleService)
 {
     this.titleService = titleService;
 }
Example #34
0
 public GatewayQuery(ITitleService titleService)
 {
     AddTitleFields(titleService);
 }
Example #35
0
 public TitleController(ITitleService service)
 {
     _service = service;
 }
Example #36
0
 public TopTitles(ITitleService titles)
 {
     _titles = titles;
 }
 public TitlesController(ITitleService TitleService)
 { _TitleService = TitleService; }
Example #38
0
 public TitleController(ITitleService Service, IProfileService profileService)
 {
     _Service        = Service;
     _ProfileService = profileService;
 }
Example #39
0
 public TitleController(ITitleService titleService)
 {
     _titleService = titleService;
 }
Example #40
0
 public OmdbGrabber(OmdbApiClient apiParser, ITitleService titleService, ILog log)
 {
     _apiParser    = apiParser;
     _titleService = titleService;
     _log          = log;
 }