Пример #1
0
 public ExaminationService(IDateTimeService dateTimeService,
                           IWorkingDirectoryProvider workingDirectoryProvider,
                           IExaminationInformation examinationInformation,
                           IMediaService mediaService,
                           IExaminationTimer examinationTimer,
                           IReportService reportService,
                           IAnswersService answersService,
                           IProgressViewModel progressViewModel,
                           IIterationsService iterationsService,
                           IGivenAnswerService givenAnswerService,
                           IHttpRequestService httpRequestService,
                           ILocalAudioMessageService localAudioMessageService,
                           IExaminationRemoteSettings settings)
 {
     this.dateTimeService          = dateTimeService;
     this.workingDirectoryProvider = workingDirectoryProvider;
     this.examinationInformation   = examinationInformation;
     this.examinationTimer         = examinationTimer;
     this.mediaService             = mediaService;
     this.reportService            = reportService;
     this.answersService           = answersService;
     this.iterationsService        = iterationsService;
     this.progressViewModel        = progressViewModel;
     this.givenAnswerService       = givenAnswerService;
     this.httpRequestService       = httpRequestService;
     this.localAudioMessageService = localAudioMessageService;
     this.settings = settings;
     this.examinationTimer.TimeUp += TimeUpHandler;
 }
        public QuestionsController(IQuestionsService questionsService,
                                   IAnswersService answersService,
                                   ICategoriesService categoriesService,
                                   IQuestionsFactory questionsFactory,
                                   IAnswersFactory answersFactory)
        {
            Guard.WhenArgument <IQuestionsService>(questionsService, "Questions service cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IAnswersService>(answersService, "Answers service cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <ICategoriesService>(categoriesService, "Categories service cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IQuestionsFactory>(questionsFactory, "Questions factory cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IAnswersFactory>(answersFactory, "Answers factory cannot be null.")
            .IsNull()
            .Throw();

            this.questionsService  = questionsService;
            this.answersService    = answersService;
            this.categoriesService = categoriesService;
            this.questionsFactory  = questionsFactory;
            this.answersFactory    = answersFactory;
        }
Пример #3
0
 public QuizzesService(IDeletableEntityRepository <Quiz> quizisRepository, IAnswersService answersService, IQuestionsService questionsServicer)
 {
     this.quizisRepository = quizisRepository;
     this.answersService   = answersService;
     this.questionsService = questionsServicer;
     this.mapper           = AutoMapperConfig.MapperInstance;
 }
 public ManageCategoriesController(IPostsService posts, IAnswersService answers, ICommentsService comments, ICategoriesService categories)
 {
     this.posts = posts;
     this.answers = answers;
     this.comments = comments;
     this.categories = categories;
 }
 public ManageCategoriesController(IPostsService posts, IAnswersService answers, ICommentsService comments, ICategoriesService categories)
 {
     m_Posts      = posts;
     m_Answers    = answers;
     m_Comments   = comments;
     m_Categories = categories;
 }
Пример #6
0
 public AnswersController(
     IAnswersService answersService,
     UserManager <ApplicationUser> userManager)
 {
     this.answersService = answersService;
     this.userManager    = userManager;
 }
Пример #7
0
 public TakesService(IQuizzesService quizzesService, IAnswersService answersService, IQuestionsService questionsService, IDeletableEntityRepository <Take> takeRepository, IRepository <TakedAnswer> takedAnswerRepository)
 {
     this.quizzesService        = quizzesService;
     this.answersService        = answersService;
     this.questionsService      = questionsService;
     this.takeRepository        = takeRepository;
     this.takedAnswerRepository = takedAnswerRepository;
 }
 public PostsController(IPostsService posts, IAnswersService answers, ICategoriesService categories, ITagsService tags, ICommentsService comments)
 {
     this.posts = posts;
     this.answers = answers;
     this.categories = categories;
     this.tags = tags;
     this.comments = comments;
 }
Пример #9
0
 public PostsController(IPostsService posts, IAnswersService answers, ICategoriesService categories, ITagsService tags, ICommentsService comments)
 {
     m_Posts      = posts;
     m_Answers    = answers;
     m_Categories = categories;
     m_Tags       = tags;
     m_Comments   = comments;
 }
 public DialogAndWelcomeBot(
     ConversationState conversationState,
     UserState userState,
     T dialog,
     ILogger <DialogBot <T> > logger,
     IAnswersService answersService)
     : base(conversationState, userState, dialog, logger)
 {
     _answersService = answersService;
 }
Пример #11
0
 public AnswersController(
     ILogger <AnswersController> logger,
     IStorageService storageService,
     IAnswersService answerService,
     ICommentsService commentsService)
 {
     _logger          = logger;
     _storageService  = storageService;
     _answersService  = answerService;
     _commentsService = commentsService;
 }
Пример #12
0
 public SessionContext(IExaminationTimer examinationTimer,
                       IMediaService mediaService,
                       IExaminationService examinationService,
                       IAnswersService answersService,
                       IProgressViewModel progressViewModel)
 {
     MediaService       = mediaService;
     ExaminationTimer   = examinationTimer;
     ExaminationService = examinationService;
     AnswersService     = answersService;
     ProgressViewModel  = progressViewModel;
 }
 public QuestionsController(
     IContestsService contestsService,
     IQuestionsService questionsService,
     IAnswersService answersService,
     IRoomsService roomsService,
     UserManager <ApplicationUser> userManager)
 {
     this.questionsService = questionsService;
     this.answersService   = answersService;
     this.roomsService     = roomsService;
     this.userManager      = userManager;
     this.contestsService  = contestsService;
 }
Пример #14
0
 public UsersController(
     ILogger <UsersController> logger,
     IUsersService usersService,
     IQuestionsService questionsService,
     IAnswersService answersService,
     ICommentsService commentsService)
 {
     _logger           = logger;
     _usersService     = usersService;
     _questionsService = questionsService;
     _answersService   = answersService;
     _commentsService  = commentsService;
 }
 public OrchestratorService(
     IAnswersService answersService,
     ILuisService luisService,
     IQnAService qnaService,
     IDialogService dialogService,
     ConversationState conversationState
     )
 {
     _answersService    = answersService;
     _luisService       = luisService;
     _qnaService        = qnaService;
     _dialogService     = dialogService;
     _conversationState = conversationState;
 }
Пример #16
0
 public DashboardController(IResultService results,
                            IMappingProvider mapper,
                            ITestsService tests,
                            IAnswersService answers,
                            ICategoryService categories,
                            UserManager <User> userManager)
 {
     this.mapper      = mapper ?? throw new ArgumentNullException("Mapper can not be null");
     this.tests       = tests ?? throw new ArgumentNullException("Tests service cannot be null");
     this.answers     = answers ?? throw new ArgumentNullException("Answers service cannot be null");
     this.categories  = categories ?? throw new ArgumentNullException("Categories service cannot be null");
     this.userManager = userManager ?? throw new ArgumentNullException("User manager cannot be null");
     this.results     = results;
 }
Пример #17
0
        public AnswersController(
            IAnswersService answersService,
            IAnswerCommentService answerCommentService,
            IAnswerVotingService questionVotingService)
        {
            this.answersService = answersService;
            this.answersService.CheckArgumentIsNull(nameof(AnswersController.answersService));

            this.answerCommentService = answerCommentService;
            this.answerCommentService.CheckArgumentIsNull(nameof(AnswersController.answerCommentService));

            this.answerVotingService = questionVotingService;
            this.answerVotingService.CheckArgumentIsNull(nameof(AnswersController.answerVotingService));
        }
Пример #18
0
 public UsersController(
     IAppointmentsService appointmentsService,
     IAnswersService answersService,
     IUsersService usersService,
     ICategoriesService categoriesService,
     IProceduresService proceduresService,
     UserManager <ApplicationUser> userManager)
 {
     this.appointmentsService = appointmentsService;
     this.answersService      = answersService;
     this.usersService        = usersService;
     this.categoriesService   = categoriesService;
     this.proceduresService   = proceduresService;
     this.userManager         = userManager;
 }
Пример #19
0
 public TakeTestController
 (
     IResultService resultService,
     IMappingProvider mapper,
     ITestsService tests,
     IAnswersService answers,
     UserManager <User> userManager,
     IMemoryCache memoryCache)
 {
     this.mapper        = mapper ?? throw new ArgumentNullException("Mapper can not be null");
     this.tests         = tests ?? throw new ArgumentNullException("Tests service cannot be null");
     this.answers       = answers ?? throw new ArgumentNullException("Answers service cannot be null");
     this.userManager   = userManager ?? throw new ArgumentNullException("User manager cannot be null");
     this.cache         = memoryCache ?? throw new ArgumentNullException("MemoryCache cannot be null");;
     this.resultService = resultService ?? throw new ArgumentNullException("Result service cannot be null");
 }
Пример #20
0
 public QuestionsController(
     ILogger <QuestionsController> logger,
     IStorageService storageService,
     IQuestionsService questionsService,
     IQuestionsTagsService questionsTagsService,
     ITagsService tagsService,
     IAnswersService answerService,
     ICommentsService commentsService,
     ISearchService searchService)
 {
     _logger               = logger;
     _storageService       = storageService;
     _tagsService          = tagsService;
     _questionsService     = questionsService;
     _questionsTagsService = questionsTagsService;
     _answersService       = answerService;
     _commentsService      = commentsService;
     _searchService        = searchService;
 }
        // Dependency injection uses this constructor to instantiate MainDialog
        public MainDialog(
            ILogger <MainDialog> logger,
            IAnswersService answersService,
            ILuisService luisService)
            : base(nameof(MainDialog))
        {
            _answersService = answersService;
            _luisService    = luisService;
            Logger          = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new MeetingReservationDialog());
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                IntroStepAsync,
                ActStepAsync,
                FinalStepAsync,
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #22
0
 public HomeController(ILogger <HomeController> logger, IAnswersService answersService)
 {
     _logger         = logger;
     _answersService = answersService;
 }
 public QuestionsController(IQuestionsService qs, IAnswersService asr, ICategoriesService cs)
 {
     this.qs  = qs;
     this.asr = asr;
     this.cs  = cs;
 }
Пример #24
0
 public QuestionsController(IQuestionsService qs, IAnswersService asr)
 {
     this.qs  = qs;
     this.asr = asr;
 }
Пример #25
0
 public AnswersController(IAnswersService answersService)
 {
     _answersService = answersService;
 }
 public AnswersController(IAnswersService dashboardService)
 {
     _answersService = dashboardService;
 }
 public QuestionAnswersController(IAnswersService _answersService)
 {
     answersService = _answersService;
 }
Пример #28
0
 public QuestionsController(IAnswersService ans)
 {
     this.ans = ans;
 }
Пример #29
0
 public AnswersController(IAnswersService answersService)
 {
     this.answersService = answersService;
 }
 public TriviaController(TriviaDbContext context, IQuestionsService questionsService, IAnswersService answersService)
 {
     this.context = context;
     this.questionsService = questionsService;
     this.answersService = answersService;
 }
Пример #31
0
 public QuestionsService(INewsSystemData data, IAnswersService answerService)
 {
     this.Data = data;
     this.AnswerService = answerService;
 }
Пример #32
0
 public AnswerController(IQuestionsService qService, IAnswersService anService)
 {
     this.QuestionService = qService;
     this.AnswersService = anService;
 }
Пример #33
0
 public AnswersController(IAnswersService answersService, ITrolleyCalculatorService trolleyCalculatorService)
 {
     _answersService           = answersService;
     _trolleyCalculatorService = trolleyCalculatorService;
 }
 public AnswersController(IAnswersService service)
 {
     _service = service;
 }
 public AnswersController(IAnswersService answers, ICommentsService comments)
 {
     this.comments = comments;
     this.answers = answers;
 }
Пример #36
0
 public QuestionsController(IQuestionService questionService, IAnswersService answersService)
 {
     this.questionService = questionService;
     this.answersService  = answersService;
 }
Пример #37
0
 public AnswersController(IUserService userService, IQuestionsService questionsService, IAnswersService answersService)
 {
     this.userService      = userService;
     this.questionsService = questionsService;
     this.answersService   = answersService;
 }