Example #1
0
        void RunField(MemberInfo member, Assembly assembly)
        {
            var fieldInfo = (FieldInfo)member;
            var context   = _explorer.FindContexts(fieldInfo);

            StartRun(CreateMap(assembly, new[] { context }));
        }
        public void RunType(Assembly assembly, Type type, IEnumerable <string> specs)
        {
            Context context = _explorer.FindContexts(type);
            IEnumerable <Specification> specsToRun = context.Specifications.Where(s => specs.Contains(s.FieldInfo.Name));

            context.Filter(specsToRun);

            StartRun(CreateMap(assembly, new[] { context }));
        }