Пример #1
0
 public Convention()
 {
     Classes = new ClassFilter().Where(type => !type.IsSubclassOf(typeof(Convention)));
     Cases = new MethodFilter().Where(m => !m.IsDispose());
     CaseExecution = new CaseBehaviorBuilder();
     InstanceExecution = new InstanceBehaviorBuilder();
     ClassExecution = new TypeBehaviorBuilder().CreateInstancePerCase();
 }
Пример #2
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();
 }
Пример #3
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[][] { };
        }
Пример #4
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[][] { };
        }