コード例 #1
0
        public async Task ShouldItemsCount1WhenTake1()
        {
            var questionsListQuery = new GetQuestionsListQuery(createdBy: _adminUserId, tenantId: _tenantId, skip: 0, take: 1);

            var questionModel = await _queryHandler.Handle(questionsListQuery, CancellationToken.None);

            Assert.Single(questionModel.Items);
        }
コード例 #2
0
        public async Task ShouldGetModelForValidInformation()
        {
            var questionsListQuery = new GetQuestionsListQuery(createdBy: _adminUserId, tenantId: _tenantId, skip: 0, take: 10);

            var questionModel = await _queryHandler.Handle(questionsListQuery, CancellationToken.None);

            Assert.Null(questionModel.Errors);
        }