Пример #1
0
        public void ReadCaatSearchableDocuments()
        {
            //Arrange
            var aRepo = new AnalyticsRepository(connectionFactory, null);

            //Act
            var caatPopTables = aRepo.ReadCaatPopTables(Config.WorkSpaceId);
            var indexes       = aRepo.ReadCaatIndexes(Config.WorkSpaceId);
            var result1       = aRepo.ReadCaatSearchableDocuments(Config.WorkSpaceId, caatPopTables, indexes);
            var result2       = aRepo.ReadCaatTrainingDocuments(Config.WorkSpaceId, caatPopTables, indexes);

            //Assert
            Assert.That(result1.Count, Is.GreaterThan(0));
            Assert.That(result2.Count, Is.GreaterThan(0));
        }
Пример #2
0
        public void ReadCaatPopTables()
        {
            //Arrange
            var aRepo = new AnalyticsRepository(connectionFactory, null);

            //Act
            var result = aRepo.ReadCaatPopTables(Config.WorkSpaceId);

            result.ToList();
            result.ToList();
            result.ToList();
            result.ToList();
            result.ToList();

            //Assert
            Assert.That(result.Count(), Is.GreaterThan(0));
        }