Exemplo n.º 1
0
        public IMappingSet Defaults()
        {
            var standardUnassignedProperties = GetPropertiesFor(Type).Where(p => p.PropertyType.IsAStandardType() && !MappingItems.ContainsKey(p));

            foreach (var property in standardUnassignedProperties)
            {
                MappingItems.Add(property, new MappingItem(property).Use(defaultGeneratorFactory.GetFor(property)));
            }
            return(this);
        }
Exemplo n.º 2
0
        public IGenerateDummyData GetGeneratorFor(string propertyName)
        {
            var propertyInfo = typeof(FooBar).GetProperty(propertyName, BindingFlags.Instance | BindingFlags.Public);

            return(factory.GetFor(propertyInfo));;
        }