public QuestionRepository( IQuestionClient questionClient, IJsonMapper jsonMapper) { _questionClient = questionClient ?? throw new ArgumentNullException(nameof(questionClient)); _jsonMapper = jsonMapper; }
public QuestionController() { var contextWrapper = new TokenContainer(); var httpclient = HttpClientInstance.Instance; var apiClient = new ApiClient(httpclient, contextWrapper); client = new QuestionClient(apiClient); }
public QuestionController(IQuestionClient client) { this.client = client; }
public QuestionController(IQuestionClient questionClient, IMapper mapper) { _questionClient = questionClient; _mapper = mapper; }