Пример #1
0
        public void MappingIncrementalProvider(IMapping map)
        {
            var providers = map.GetFieldsWithProviders;
            var result    = map.Incremental("Id");
            var provider  = providers.FirstOrDefault();

            Assert.Equal(map, result);
            Assert.Equal("Id", provider.Key);
            Assert.Equal(ProviderType.Incremental, provider.Value.Type);
            Assert.Equal(typeof(int), provider.Value.TType);
            Assert.Equal("Id", ((IncrementalProvider)provider.Value).Prop);
        }