Пример #1
0
 public OptionService(IOptionRepository optionRepository, IMapper mapper, IPollOptionService pollOptionService)
     : base(optionRepository)
 {
     _optionRepository  = optionRepository;
     _mapper            = mapper;
     _pollOptionService = pollOptionService;
 }
Пример #2
0
 public AuthenticateViewModel(IOptionRepository conf, TwitterService twitterService)
 {
     _twitterService   = twitterService;
     _optionRepository = conf;
     GetPinCommand     = new RelayCommand(OnGetPin);
     SignInComannd     = new RelayCommand(OnSignIn);
 }
Пример #3
0
 public OptionManagementService(IOptionRepository optionRepository) : base(optionRepository)
 {
     Mapper.Initialize(cfg => { cfg.CreateMap <SYS_Option, SYS_OptionDTO>();
                                cfg.CreateMap <SYS_DetailOption, SYS_DetailOptionDTO>(); });
     _log = new Logger();
     _OptionRepository = optionRepository;
 }
Пример #4
0
 public ServiceViewModelHandler(IEntityRepository <ILKGEntity> entityRepository,
                                IServiceRepository serviceRepository,
                                IFormRepository formRepository,
                                IFormFieldRepository formFieldRepository,
                                IOptionRepository optionRepository,
                                IServiceFactory serviceFactory,
                                IFormFactory formFactory,
                                IFormFieldFactory formFieldFactory,
                                IOptionFactory optionFactory,
                                IFormFieldTypeRepository formFieldTypeRepository,
                                IFormFieldValidationRuleFactory formFieldValidationRuleFactory,
                                IValidationRuleRepository validationRuleRepository)
 {
     this.entityRepository               = entityRepository;
     this.serviceRepository              = serviceRepository;
     this.formRepository                 = formRepository;
     this.formFieldRepository            = formFieldRepository;
     this.optionRepository               = optionRepository;
     this.serviceFactory                 = serviceFactory;
     this.formFactory                    = formFactory;
     this.formFieldFactory               = formFieldFactory;
     this.optionFactory                  = optionFactory;
     this.formFieldTypeRepository        = formFieldTypeRepository;
     this.formFieldValidationRuleFactory = formFieldValidationRuleFactory;
     this.validationRuleRepository       = validationRuleRepository;
 }
Пример #5
0
 public SubjectService(ISubjectRepository repository, IMapper mapper, IUnitOfWork unitOfWork, IOptionRepository optionRp)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _optionRp   = optionRp ?? throw new ArgumentNullException(nameof(optionRp));
 }
 public QuestionnaireManager(IQuestionRepository questionRepository, IAnswerRepository answerRepository, IOptionRepository optionRepository, IQuestionnaireRepository questionnaireRepository, IProjectManager projectManager)
 {
     _questionRepository      = questionRepository;
     _answerRepository        = answerRepository;
     _optionRepository        = optionRepository;
     _questionnaireRepository = questionnaireRepository;
     _projectManager          = projectManager;
 }
        private readonly IStatsService statsService; // Bit wierd. Passing in repositories and services. Which one should it be

        #endregion Fields

        #region Constructors

        public CompetitionService(ICompetitionRepository competitionRepository, 
            IOptionRepository optionRepository,
            IStatsService statsService)
        {
            this.competitionRepository = competitionRepository;
            this.optionRepository = optionRepository;
            this.statsService = statsService;
        }
 public OpenAnswersController(IOpenAnswerRepository openAnswerRepository, IOptionRepository optionRepository,
                              IUserRepository userRepository, IMapper mapper)
 {
     _openAnswerRepository = openAnswerRepository;
     _optionRepository     = optionRepository;
     _userRepository       = userRepository;
     _mapper = mapper;
 }
Пример #9
0
        private readonly IStatsService statsService; // Bit wierd. Passing in repositories and services. Which one should it be

        public CompetitionService(ICompetitionRepository competitionRepository,
                                  IOptionRepository optionRepository,
                                  IStatsService statsService)
        {
            this.competitionRepository = competitionRepository;
            this.optionRepository      = optionRepository;
            this.statsService          = statsService;
        }
 public UserManagementService(IUserRepository userRepository, ICompanyRepository companyRepository, IOptionRepository optionRepository, IUserService userService) : base(userRepository)
 {
     _log = new Logger();
     _CompanyRepository = companyRepository;
     _OptionRepository  = optionRepository;
     _UserRepository    = userRepository;
     _UserService       = userService;
 }
Пример #11
0
 public OptionsController(IOptionRepository optionRepository, IQuestionRepository questionRepository,
                          IMapper mapper, ILogger <OptionsController> logger)
 {
     _optionRepository   = optionRepository;
     _questionRepository = questionRepository;
     _mapper             = mapper;
     _logger             = logger;
 }
Пример #12
0
 public CreateOptionProductHandler(
     IProductRepository productRepository,
     IOptionRepository optionRepository,
     NotificationContext notificationContext)
 {
     _productRepository   = productRepository;
     _optionRepository    = optionRepository;
     _notificationContext = notificationContext;
 }
Пример #13
0
 public PutProductOptionHandler(
     NotificationContext notificationContext,
     IProductRepository productRepository,
     IOptionRepository optionRepository)
 {
     _notificationContext = notificationContext;
     _productRepository   = productRepository;
     _optionRepository    = optionRepository;
 }
Пример #14
0
 public OptionsOneViewModel(IOptionRepository conf, TwitterService twitterService)
 {
     SaveCommand       = new RelayCommand(OnSave);
     ResetCommand      = new RelayCommand(ResetApplication);
     DelfaultCommand   = new RelayCommand(OnDelfault);
     LogOutCommand     = new RelayCommand(OnLogOut);
     _optionRepository = conf;
     _twitterService   = twitterService;
 }
Пример #15
0
 public PutOptionItemHandler(
     NotificationContext notificationContext,
     IOptionRepository optionRepository,
     IItemRepository itemRepository)
 {
     _notificationContext = notificationContext;
     _optionRepository    = optionRepository;
     _itemRepository      = itemRepository;
 }
Пример #16
0
 public FormModelBuilder(IFormRepository formRepository,
                         IFormFieldRepository formFieldRepository,
                         IOptionRepository optionRepository,
                         IFormFieldTypeRepository formFieldTypeRepository)
 {
     this.formRepository          = formRepository;
     this.formFieldRepository     = formFieldRepository;
     this.optionRepository        = optionRepository;
     this.formFieldTypeRepository = formFieldTypeRepository;
 }
Пример #17
0
 public OptionService(IMapper mapper,
                      IOptionRepository optionRepository,
                      IMemoryCache memoryCache,
                      ILogger <DungeonService> logger)
 {
     _optionRepository = optionRepository;
     _memoryCache      = memoryCache;
     _mapper           = mapper;
     _logger           = logger;
 }
Пример #18
0
 public AdminOptionsService(
     IOptionRepository optionRepository,
     IAdminCommonDeleteService adminDeleteService,
     IAdminCommonEditService adminEditService,
     IAdminCommonCreateService adminCreateService)
 {
     this.optionRepository   = optionRepository;
     this.adminDeleteService = adminDeleteService;
     this.adminEditService   = adminEditService;
     this.adminCreateService = adminCreateService;
 }
Пример #19
0
 public OptionsController(
     IAdminOptionsService adminOptionsService,
     ICookiesService cookiesService,
     IOptionRepository optionRepository,
     IAdminOptionTypesService adminOptionTypesService)
 {
     this.adminOptionsService     = adminOptionsService;
     this.cookiesService          = cookiesService;
     this.optionRepository        = optionRepository;
     this.adminOptionTypesService = adminOptionTypesService;
 }
Пример #20
0
 public OptionAnswersController(IMapper mapper, IOptionAnswerRepository optionAnswerRepository, IUserRepository userRepository,
                                IOptionRepository optionRepository, IUserExercisePointRepository userExercisePointRepository, IExerciseRepository exerciseRepository,
                                ISubexerciseRepository subexerciseRepository)
 {
     _userRepository              = userRepository;
     _mapper                      = mapper;
     _optionAnswerRepository      = optionAnswerRepository;
     _optionRepository            = optionRepository;
     _userExercisePointRepository = userExercisePointRepository;
     _exerciseRepository          = exerciseRepository;
     _subexerciseRepository       = subexerciseRepository;
 }
Пример #21
0
 public AdminController(IUserRepository usrepo, IQuestionRepository quesrepo, IEvntRepository evrepo, IAnswerRepository ansrepo, ICourseRepository currepo, IExamRepository exrepo, IOptionRepository oprepo, IRegistrationRepository regrepo, IResultRepository resrepo)
 {
     this.evrepo   = evrepo;
     this.usrepo   = usrepo;
     this.quesrepo = quesrepo;
     this.ansrepo  = ansrepo;
     this.currepo  = currepo;
     this.exrepo   = exrepo;
     this.oprepo   = oprepo;
     this.regrepo  = regrepo;
     this.resrepo  = resrepo;
 }
Пример #22
0
 public UnitOfWork(IExamBuilderDbContext context,
                   IUserRepository users,
                   IOptionRepository options,
                   IExamRepository exams,
                   IQuestionRepository questions)
 {
     _context  = context;
     Exams     = exams;
     Options   = options;
     Questions = questions;
     Users     = users;
 }
Пример #23
0
        public OptionService(
            IMapper mapper,
            IOptionRepository optionRepository,
            IVotingHubClient votingHubClient,
            IVotingService votingService)
        {
            DependencyHelper.ThrowIfNull(mapper, optionRepository, votingHubClient, votingService);

            _mapper           = mapper;
            _optionRepository = optionRepository;
            _votingHub        = votingHubClient;
            _votingService    = votingService;
        }
Пример #24
0
 public DungeonService(IMapper mapper,
                       IDungeonRepository dungeonRepository,
                       IDungeonOptionRepository dungeonOptionRepository,
                       IOptionRepository optionRepository,
                       IDungeonHelper dungeonHelper,
                       ILogger <DungeonService> logger)
 {
     _dungeonRepository       = dungeonRepository;
     _dungeonOptionRepository = dungeonOptionRepository;
     _optionRepository        = optionRepository;
     _dungeonHelper           = dungeonHelper;
     _mapper = mapper;
     _logger = logger;
 }
Пример #25
0
        public ConfigurationService(
            ISiteRepository siteRepository,
            IOptionRepository optionRepository,
            IEndpointRepository endpointRepository,
            ISiteHealthUnitOfWork uow)
        {
            _siteRepository     = siteRepository;
            _optionRepository   = optionRepository;
            _endpointRepository = endpointRepository;
            _uow = uow;

            _simpleMapper = CreateSimpleMapper();
            _deepMapper   = CreateMapperWithChilds();
        }
Пример #26
0
 public ServiceModelHandler(IEntityRepository <ILKGEntity> entityRepository,
                            IServiceRepository serviceRepository,
                            IServiceFactory serviceFactory,
                            IFormRepository formRepository,
                            IFormFieldRepository formFieldRepository,
                            IOptionRepository optionRepository)
 {
     this.entityRepository    = entityRepository;
     this.serviceRepository   = serviceRepository;
     this.serviceFactory      = serviceFactory;
     this.formRepository      = formRepository;
     this.formFieldRepository = formFieldRepository;
     this.optionRepository    = optionRepository;
 }
Пример #27
0
 public AdminController(IUserRepository userRepository,
                        ISurveyRepository surveyRepository,
                        ISurveyQuestionRepository surveyQuestionRepository,
                        IOptionRepository optionRepository,
                        IOptionsForAnswerRepository optionsForAnswerRepository,
                        IUserAnswerRepository userAnswerRepository)
 {
     this.userRepository             = userRepository;
     this.surveyRepository           = surveyRepository;
     this.surveyQuestionRepository   = surveyQuestionRepository;
     this.optionRepository           = optionRepository;
     this.optionsForAnswerRepository = optionsForAnswerRepository;
     this.userAnswerRepository       = userAnswerRepository;
 }
Пример #28
0
 public AppearanceViewModel(IOptionRepository conf)
 {
     _themes.Add(new Link
     {
         DisplayName = "Dark",
         Source      = AppearanceManager.DarkThemeSource
     });
     _themes.Add(new Link
     {
         DisplayName = "Light",
         Source      = AppearanceManager.LightThemeSource
     });
     _optionRepository = conf;
     SyncThemeAndColor();
     AppearanceManager.Current.PropertyChanged += OnAppearanceManagerPropertyChanged;
 }
Пример #29
0
        public TwitterService(IOptionRepository conf)
        {
            TweetTimeline timeline = new TweetTimeline();

            _timeline = timeline;
            _config   = conf;
            ShowUserInformationCommand = new RelayCommand <string>(OnShowUserInformation);
            OpenTweetLinkCommand       = new RelayCommand <Tweet>(OnOpenTweetLink);
            ImageViewCommand           = new RelayCommand <string>(OnImageView);
            ReplyCommand           = new RelayCommand <Tweet>(OnReply);
            RetweetCommand         = new RelayCommand <Tweet>(OnRetweet);
            DeleteTweetCommand     = new RelayCommand <Tweet>(OnDeleteTweet);
            FavoritesCommand       = new RelayCommand <Tweet>(OnLikeTweet);
            CopyCommand            = new RelayCommand <Tweet>(OnCopy);
            SwitchTimelinesCommand = new RelayCommand <View>(OnSwitchTimelines);
        }
Пример #30
0
 public QuestionService(IQuestionRepository questionRepository, UserManager <User> userManager,
                        IOptionRepository optionRepository, IMapper mapper, IUserScoreRepository userScoreRepository,
                        ICategoryRepository categoryRepository, IDigitalFileRepository digitalFileRepository,
                        IScoreRepository scoreRepository, IEmailService emailService, ICacheService cacheService, IAppSettingsService appSettings)
 {
     this._digitalFileRepository = digitalFileRepository;
     this._scoreRepository       = scoreRepository;
     this._emailService          = emailService;
     this._cacheService          = cacheService;
     this._appSettings           = appSettings;
     this._categoryRepository    = categoryRepository;
     this._userScoreRepository   = userScoreRepository;
     this._mapper             = mapper;
     this._optionRepository   = optionRepository;
     this._questionRepository = questionRepository;
     this._userManager        = userManager;
 }
Пример #31
0
 public TestController(ILogger <TestController> logger,
                       IUserRepository repo,
                       ITestRepository testRepo,
                       ITaskRepository taskRepo,
                       IOptionRepository optionRepo,
                       ITestResultRepository testResultRepo,
                       ITaskResultRepository taskResultRepo,
                       IOptionResultRepository optionResultRepo)
 {
     _logger           = logger;
     _userRepo         = repo;
     _testRepo         = testRepo;
     _taskRepo         = taskRepo;
     _testResultRepo   = testResultRepo;
     _taskResultRepo   = taskResultRepo;
     _optionRepo       = optionRepo;
     _optionResultRepo = optionResultRepo;
 }
Пример #32
0
 public OptionService(IOptionRepository optionRepository)
 {
     this._optionRepository = optionRepository;
 }