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); }
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); }
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); }