Ejemplo n.º 1
0
        public async Task ShouldItemsCount1WhenTake1()
        {
            var query = new GetTraineeGroupsListQuery(tenantId: _tenantId, skip: 0, take: 1);

            var traineeGroupModel = await _queryHandler.Handle(query, CancellationToken.None);

            Assert.Single(traineeGroupModel.Items);
        }
Ejemplo n.º 2
0
        public async Task ShouldGetModelForValidInformation()
        {
            var query = new GetTraineeGroupsListQuery(tenantId: _tenantId, skip: 0, take: 10);

            var traineeGroupModel = await _queryHandler.Handle(query, CancellationToken.None);

            Assert.Null(traineeGroupModel.Errors);
        }