예제 #1
0
 public Convention()
 {
     Classes           = new ClassFilter().Where(type => !type.IsSubclassOf(typeof(Convention)));
     Cases             = new MethodFilter();
     CaseExecution     = new CaseBehaviorBuilder();
     InstanceExecution = new InstanceBehaviorBuilder();
     ClassExecution    = new TypeBehaviorBuilder().CreateInstancePerCase();
 }
예제 #2
0
        public Convention()
        {
            Classes           = new ClassFilter().Where(type => !type.IsSubclassOf(typeof(Convention)));
            Methods           = new MethodFilter().Where(m => !m.IsDispose());
            CaseExecution     = new CaseBehaviorBuilder();
            InstanceExecution = new InstanceBehaviorBuilder();
            ClassExecution    = new TypeBehaviorBuilder().CreateInstancePerCase();

            methodCallParameterBuilder = method => new object[][] { };
        }