Exemplo n.º 1
0
 public QuestionRepository(
     IQuestionClient questionClient,
     IJsonMapper jsonMapper)
 {
     _questionClient = questionClient ?? throw new ArgumentNullException(nameof(questionClient));
     _jsonMapper     = jsonMapper;
 }
Exemplo n.º 2
0
        public QuestionController()
        {
            var contextWrapper = new TokenContainer();
            var httpclient     = HttpClientInstance.Instance;
            var apiClient      = new ApiClient(httpclient, contextWrapper);

            client = new QuestionClient(apiClient);
        }
Exemplo n.º 3
0
 public QuestionController(IQuestionClient client)
 {
     this.client = client;
 }
 public QuestionController(IQuestionClient questionClient, IMapper mapper)
 {
     _questionClient = questionClient;
     _mapper         = mapper;
 }