Esempio n. 1
0
        public void Returns_the_default_pool_size_if_non_set()
        {
            var property = CreateProperty();

            var cache = new SqlServerValueGeneratorCache();

            Assert.Equal(1, cache.GetPoolSize(property));
        }
Esempio n. 2
0
        public void Pool_size_is_obtained_from__model()
        {
            var property = CreateProperty();

            property.DeclaringEntityType.Model.SqlServer().HiLoSequencePoolSize = 10;

            var cache = new SqlServerValueGeneratorCache();

            Assert.Equal(10, cache.GetPoolSize(property));
        }
        public void Returns_the_default_pool_size()
        {
            var property = CreateProperty();

            var cache = new SqlServerValueGeneratorCache();

            Assert.Equal(5, cache.GetPoolSize(property));
        }