Example #1
0
        public void ReadCaatIndexes()
        {
            // TODO -- ? Do these need to target workspace?
            //Arrange
            var aRepo = new AnalyticsRepository(connectionFactory, null);

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

            //Assert
            Assert.That(result.Count(), Is.GreaterThan(0));
        }
Example #2
0
        public void ReadCaatSearchableDocuments_NoCaatPopTables()
        {
            //Arrange
            var aRepo = new AnalyticsRepository(connectionFactory, null);

            //Act
            var caatPopTables = new List <string>();
            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.EqualTo(0));
            Assert.That(result2.Count, Is.EqualTo(0));
        }