Пример #1
0
 public ValuesController(
     IStackExchangeClient stackClient,
     IGitHubClient gitHubClient)
 {
     this.stackClient  = stackClient;
     this.gitHubClient = gitHubClient;
 }
Пример #2
0
 public QuestionController(IFilteredLatestQuestionsFetcher filteredLatestQuestionsFetcher, IStackExchangeClient stackExchangeClient, IAttemptRepository attemptRepository, IMapper mapper)
 {
     _filteredLatestQuestionsFetcher = filteredLatestQuestionsFetcher;
     _stackExchangeClient            = stackExchangeClient;
     _attemptRepository = attemptRepository;
     _mapper            = mapper;
 }
 public PreviouslyAttemptedQuestionFetcher(IAttemptRepository attemptRepository, IStackExchangeClient stackExchangeClient, IAttemptedQuestionDtoAssembler attemptedQuestionDtoAssembler, IMapper mapper)
 {
     _attemptRepository             = attemptRepository;
     _stackExchangeClient           = stackExchangeClient;
     _attemptedQuestionDtoAssembler = attemptedQuestionDtoAssembler;
     _mapper = mapper;
 }
 public static Task <IList <Question> > SearchAsync(this IStackExchangeClient client, string site, string inTitle, CancellationToken ct = default)
 {
     return(client.SearchAsync(new SearchQuery
     {
         InTitle = inTitle,
         Site = site
     }, ct));
 }
Пример #5
0
 public HomeController(ILogger <HomeController> logger, IStackExchangeClient stackExchangeClient)
 {
     _logger = logger;
     _stackExchangeClient = stackExchangeClient;
 }
Пример #6
0
 protected StackExchangeProvider(IStackExchangeClient stackExchangeClient, IQueryParser <SearchQuery> queryParser, IQuestionDescriptionFactory descriptionFactory)
 {
     _stackExchangeClient = stackExchangeClient;
     _queryParser         = queryParser;
     _descriptionFactory  = descriptionFactory;
 }
Пример #7
0
 public StackOverflowProvider(IStackExchangeClient stackExchangeClient, IQueryParser <SearchQuery> queryParser, IQuestionDescriptionFactory descriptionFactory)
     : base(stackExchangeClient, queryParser, descriptionFactory)
 {
 }
 public FilteredLatestQuestionsFetcher(IStackExchangeClient stackExchangeClient, IQuestionFilter questionFilter, IAttemptRepository attemptRepository)
 {
     _stackExchangeClient = stackExchangeClient;
     _questionFilter      = questionFilter;
     _attemptRepository   = attemptRepository;
 }