public void Change_CachePrefix()
        {
            const string newPrefix = "TestPrefix123";
            DefaultRepositoryConventions.CachePrefix = newPrefix;

            var repos = new InMemoryRepository.InMemoryRepository<Contact>(new StandardCachingStrategy<Contact, int>());
            repos.CachingStrategy.FullCachePrefix.ShouldStartWith(newPrefix);
        }
예제 #2
0
        public void Change_CachePrefix()
        {
            const string newPrefix = "TestPrefix123";

            DefaultRepositoryConventions.CachePrefix = newPrefix;

            var repos = new InMemoryRepository.InMemoryRepository <Contact>(new StandardCachingStrategy <Contact, int>());

            repos.CachingStrategy.FullCachePrefix.ShouldStartWith(newPrefix);
        }
예제 #3
0
        public void Default_CachePrefix()
        {
            var repos = new InMemoryRepository.InMemoryRepository <Contact>(new StandardCachingStrategy <Contact, int>());

            repos.CachingStrategy.FullCachePrefix.ShouldStartWith(DefaultRepositoryConventions.CachePrefix);
        }
 public void Default_CachePrefix()
 {
     var repos = new InMemoryRepository.InMemoryRepository<Contact>(new StandardCachingStrategy<Contact, int>());
     repos.CachingStrategy.FullCachePrefix.ShouldStartWith(DefaultRepositoryConventions.CachePrefix);
 }