Machine.Specifications.Runner.Impl.DefaultRunner.RunType C# (CSharp) 메소드

RunType() 공개 메소드

public RunType ( Assembly assembly, Type type, IEnumerable specs ) : void
assembly System.Reflection.Assembly
type System.Type
specs IEnumerable
리턴 void
        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 }));
        }