public async Task ShouldItemsCount1WhenTake1()
        {
            var getQuestionTypesListQuery = new GetQuestionTypesListQuery(skip: 0, take: 1);

            var questionTypeModel = await _getQuestionTypesListQueryHandler.Handle(getQuestionTypesListQuery, CancellationToken.None);

            Assert.Single(questionTypeModel.Items);
        }
        public async Task ShouldGetModelForValidInformation()
        {
            var getQuestionTypesListQuery = new GetQuestionTypesListQuery(skip: 0, take: 10);

            var questionTypeModel = await _getQuestionTypesListQueryHandler.Handle(getQuestionTypesListQuery, CancellationToken.None);

            Assert.Null(questionTypeModel.Errors);
        }
 public Task <List <QuestionTypeDto> > Handle(GetQuestionTypesListQuery request, CancellationToken cancellationToken)
 {
     return(_context.QuestionType.Select(QuestionTypeDto.Projection).ToListAsync());
 }