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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }