Exemplo n.º 1
0
        public void CanQueryByPrefix()
        {
            PersistentVariableRepository persistencevariableRepository = new PersistentVariableRepository();

            CmsPersistentVariable[] variableArray = persistencevariableRepository.FetchAllWithNamePrefix("LastPeriodicTaskStartTime_HatCms.Admin");
            Assert.That(variableArray.Length, Is.EqualTo(3));
        }
        } // FetchAll

        public static CmsPersistentVariable[] FetchAllWithNamePrefix(string namePrefix)
        {
            PersistentVariableRepository repository = new PersistentVariableRepository();

            return(repository.FetchAllWithNamePrefix(namePrefix));
        }